mirror of
https://github.com/emu-russia/pureikyubu.git
synced 2024-06-01 19:17:33 -04:00
commit
f4fa7b5dbf
10
src/pad.cpp
10
src/pad.cpp
|
@ -111,15 +111,17 @@ void PADClose()
|
|||
// ---------------------------------------------------------------------------
|
||||
// process input
|
||||
|
||||
// TODO: The problem with stick sticking to the right in Bootrom is in this location
|
||||
|
||||
#define THRESOLD 87
|
||||
#define STICK_INITIAL -128
|
||||
#define THRESOLD 127
|
||||
#define STICK_INITIAL 0
|
||||
|
||||
static void pad_reset_chan(PADState* state)
|
||||
{
|
||||
memset(state, 0, sizeof(PADState));
|
||||
|
||||
// The analog control values can range from -127 to +127.
|
||||
// The pad.a library further filters them by setting the lower cap to 15 and the upper cap to 87 for stick and 74 for cstick.
|
||||
// But these are purely programmatic fiddles that don't concern us.
|
||||
|
||||
state->stickX = state->stickY = STICK_INITIAL;
|
||||
state->substickX = state->substickY = STICK_INITIAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue