mirror of
https://github.com/Oibaf66/fbzx-wii.git
synced 2024-11-28 11:04:15 +01:00
Fixed auto virtual keyboard for windows version
This commit is contained in:
parent
aff20a44cc
commit
6c3218830b
@ -1586,16 +1586,14 @@ inline void read_keyboard () {
|
|||||||
if ((!wd->ir.valid)&&(ordenador.vk_is_active)) virtkey_ir_deactivate();
|
if ((!wd->ir.valid)&&(ordenador.vk_is_active)) virtkey_ir_deactivate();
|
||||||
#else
|
#else
|
||||||
int x=0,y=0 ;
|
int x=0,y=0 ;
|
||||||
SDL_GetRelativeMouseState(&x,&y);
|
SDL_GetMouseState(&x,&y);
|
||||||
if (x||y)
|
if ((x>64)&&(x<576)&&(y>90)&&(y<390))
|
||||||
{
|
{
|
||||||
ordenador.vk_is_active=1;
|
if (!ordenador.vk_is_active) virtkey_ir_activate();
|
||||||
SDL_ShowCursor(SDL_ENABLE);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ordenador.vk_is_active=0;
|
if (ordenador.vk_is_active) virtkey_ir_deactivate();
|
||||||
SDL_ShowCursor(SDL_DISABLE);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user