1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-03 08:20:23 +02:00

Expose analog joystick input to the Lua API (#14348)

This commit is contained in:
grorp
2024-10-01 17:21:42 +02:00
committed by GitHub
parent 6569fdd4d1
commit 22ef4c8be1
13 changed files with 127 additions and 83 deletions

View File

@ -163,8 +163,8 @@ public:
*/
line3d<f32> getShootline() { return m_shootline; }
float getMovementDirection() { return m_joystick_direction; }
float getMovementSpeed() { return m_joystick_speed; }
float getJoystickDirection() { return m_joystick_direction; }
float getJoystickSpeed() { return m_joystick_speed; }
void step(float dtime);
inline void setUseCrosshair(bool use_crosshair) { m_draw_crosshair = use_crosshair; }