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
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
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;