mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 09:53:25 +00:00
Move many input enums to their own file
This commit is contained in:
parent
1acc76fecc
commit
e919d894f8
10 changed files with 184 additions and 136 deletions
|
@ -324,15 +324,15 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_joyhat(JNIEnv *env, j
|
|||
int hat = 0;
|
||||
if (p_hat_x != 0) {
|
||||
if (p_hat_x < 0)
|
||||
hat |= Input::HAT_MASK_LEFT;
|
||||
hat |= HatMask::HAT_MASK_LEFT;
|
||||
else
|
||||
hat |= Input::HAT_MASK_RIGHT;
|
||||
hat |= HatMask::HAT_MASK_RIGHT;
|
||||
}
|
||||
if (p_hat_y != 0) {
|
||||
if (p_hat_y < 0)
|
||||
hat |= Input::HAT_MASK_UP;
|
||||
hat |= HatMask::HAT_MASK_UP;
|
||||
else
|
||||
hat |= Input::HAT_MASK_DOWN;
|
||||
hat |= HatMask::HAT_MASK_DOWN;
|
||||
}
|
||||
jevent.hat = hat;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue