mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Core: Add dedicated BitField template
This commit is contained in:
parent
7b9c5122fa
commit
0d267e7b1e
46 changed files with 188 additions and 155 deletions
|
|
@ -398,7 +398,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_joyhat(JNIEnv *env, j
|
|||
AndroidInputHandler::JoypadEvent jevent;
|
||||
jevent.device = p_device;
|
||||
jevent.type = AndroidInputHandler::JOY_EVENT_HAT;
|
||||
BitField<HatMask> hat;
|
||||
BitField<HatMask> hat = HatMask::CENTER;
|
||||
if (p_hat_x != 0) {
|
||||
if (p_hat_x < 0) {
|
||||
hat.set_flag(HatMask::LEFT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue