Re: [AD] re: mouse mickeys problem |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> some investigation into the allegro source i find that mickeys are
> obtained by using win32::GetCursorPos() which i presume only works
> until the cursor hits the edge of the screen.
Yes.
> i have found some directInput code that apparently gets the raw mickeys
> here is a sample:
>
> DIMOUSESTATE diMouseState;
> LONG MouseX, MouseY;
> if(lpdiMouse->GetDeviceState(sizeof(diMouseState), &diMouseState) ==
> DI_OK) {
> MouseX = diMouseState.lX;
> MouseY = diMouseState.lY;
> }
>
>
> i think this is what needs to be done to get real mickeys from
> DirectInput.
Using DirectInput alone doesn't work because you need to have a seamless
transition between the Windows desktop and the Allegro window.
--
Eric Botcazou