mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-06 16:19:25 +02:00
hid: Fixed memset in hidJoystickRead().
This commit is contained in:
parent
1c82758c03
commit
dc0bc2ab7b
@ -853,7 +853,7 @@ void hidJoystickRead(JoystickPosition *pos, HidControllerID id, HidControllerJoy
|
||||
|
||||
if (pos) {
|
||||
if (id < 0 || id > 9 || stick >= JOYSTICK_NUM_STICKS) {
|
||||
memset(pos, 0, sizeof(touchPosition));
|
||||
memset(pos, 0, sizeof(*pos));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user