mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-28 12:11:50 +01:00
better keep gun initial position centered for when using analog sticks
This commit is contained in:
parent
7026a8445e
commit
4d142b2e9c
@ -92,6 +92,8 @@ static struct
|
|||||||
|
|
||||||
void lightgun_reset(int port)
|
void lightgun_reset(int port)
|
||||||
{
|
{
|
||||||
|
input.analog[port][0] = bitmap.viewport.w / 2;
|
||||||
|
input.analog[port][1] = bitmap.viewport.h / 2;
|
||||||
lightgun.State = 0x40;
|
lightgun.State = 0x40;
|
||||||
lightgun.Port = 4;
|
lightgun.Port = 4;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user