implemented l2 and r2 mostly (except for some to-do items mentioned in comments)

This commit is contained in:
2026-01-20 08:32:29 +00:00
parent 38e31b2097
commit 9962232f83
3 changed files with 59 additions and 18 deletions

View File

@@ -70,6 +70,14 @@ float getLeftJoystickYAxisState() {
}
}
float getL2State() {
return axes[2];
}
float getR2State() {
return axes[5];
}
int isCrossButtonPressed() {
return state.buttons[GLFW_GAMEPAD_BUTTON_CROSS];
}

View File

@@ -74,4 +74,9 @@ struct
_import "isR1ButtonPressed" public : unit -> int;
val isL1ButtonPressed =
_import "isL1ButtonPressed" public : unit -> int;
val getR2State =
_import "getR2State" public : unit -> Real32.real;
val getL2State =
_import "getL2State" public : unit -> Real32.real;
end