mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-25 18:51:49 +01:00
+ added X/Y overflow for Mouse emulation
This commit is contained in:
parent
3f6925dc8a
commit
60cdda4c53
@ -205,8 +205,10 @@ uint32 mouse_read()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 4: /* Axis sign and overflow */
|
case 4: /* Axis sign and overflow */
|
||||||
if (input.analog[2][0] < 0) temp |= 0x01;
|
if (input.analog[2][0] < 0) temp |= 0x01;
|
||||||
if (input.analog[2][1] < 0) temp |= 0x02;
|
if (input.analog[2][1] < 0) temp |= 0x02;
|
||||||
|
if (abs(input.analog[2][0]) > 255) temp |= 0x04;
|
||||||
|
if (abs(input.analog[2][1]) > 255) temp |= 0x08;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5: /* Buttons state */
|
case 5: /* Buttons state */
|
||||||
|
Loading…
Reference in New Issue
Block a user