1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Move many input enums to their own file

This commit is contained in:
Aaron Franke
2021-03-25 19:58:48 -04:00
parent 1acc76fecc
commit e919d894f8
10 changed files with 184 additions and 136 deletions

View File

@@ -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;