mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 14:34:09 +00:00
Fix a small bug I introdues and fix a old bug for tribes
svn path=/trunk/; revision=14330
This commit is contained in:
parent
cb6b20b96e
commit
24a420afcf
1 changed files with 8 additions and 8 deletions
|
@ -898,17 +898,19 @@ GetCursorPos( &point );
|
||||||
|
|
||||||
if (This->acquired == 0) {
|
if (This->acquired == 0) {
|
||||||
WARN(" application tries to get data from an unacquired device !\n");
|
WARN(" application tries to get data from an unacquired device !\n");
|
||||||
return DIERR_NOTACQUIRED;
|
//return DIERR_NOTACQUIRED;
|
||||||
|
|
||||||
// windows does not get any data if
|
// windows does not get any data if
|
||||||
// we do not call manual to mouse Acquire
|
// we do not call manual to mouse Acquire
|
||||||
// this is only need if some apps calling on getdevice data direcly
|
// this is only need if some apps calling on getdevice data direcly
|
||||||
// in windows GetdeviceData does always update first the data
|
// in windows GetdeviceData does always update first the data
|
||||||
// then return it.
|
// then return it.
|
||||||
// SysMouseAImpl_Acquire(iface);
|
if (last_event==0)
|
||||||
// we are reading the mouse before we reache here.
|
{
|
||||||
// we do not need call on SysMouseAImpl_Acquire
|
This->absolute = 0;
|
||||||
// for now.
|
SysMouseAImpl_Acquire(iface);
|
||||||
|
FIXME("This make the mouse choppy in Tribes , need new center code for calcuation of the mouse !!!!!!!!\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -928,8 +930,6 @@ GetCursorPos( &point );
|
||||||
return DIERR_NOTINITIALIZED;
|
return DIERR_NOTINITIALIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
FIXME("This is broken in Tribes ??, need right implant of the buffer!!!!!!!!\n");
|
|
||||||
|
|
||||||
if (GetTickCount()-time <50) {
|
if (GetTickCount()-time <50) {
|
||||||
*entries=0;
|
*entries=0;
|
||||||
return DI_OK;
|
return DI_OK;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue