mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Fix hat mapping if dpad emulation is deactivated
This commit is contained in:
parent
dc1ec6b877
commit
2da890800f
@ -386,6 +386,10 @@ init_device() {
|
||||
_dpad_up_button = (int)_buttons.size();
|
||||
_buttons.push_back(ButtonState(GamepadButton::dpad_up()));
|
||||
_buttons.push_back(ButtonState(GamepadButton::dpad_down()));
|
||||
} else if (i == ABS_HAT0X) {
|
||||
set_control_map(i, C_hat_x);
|
||||
} else if (i == ABS_HAT0Y) {
|
||||
set_control_map(i, C_hat_y);
|
||||
}
|
||||
} else {
|
||||
set_control_map(i, axis_map[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user