mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Allow binding dig, place actions to keys; remove LMB/RMB hardcoding
Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
This commit is contained in:
parent
fff0393187
commit
291a6b70d6
14 changed files with 284 additions and 310 deletions
12
src/player.h
12
src/player.h
|
@ -57,8 +57,8 @@ struct PlayerControl
|
|||
bool a_aux1,
|
||||
bool a_sneak,
|
||||
bool a_zoom,
|
||||
bool a_LMB,
|
||||
bool a_RMB,
|
||||
bool a_dig,
|
||||
bool a_place,
|
||||
float a_pitch,
|
||||
float a_yaw,
|
||||
float a_sidew_move_joystick_axis,
|
||||
|
@ -73,8 +73,8 @@ struct PlayerControl
|
|||
aux1 = a_aux1;
|
||||
sneak = a_sneak;
|
||||
zoom = a_zoom;
|
||||
LMB = a_LMB;
|
||||
RMB = a_RMB;
|
||||
dig = a_dig;
|
||||
place = a_place;
|
||||
pitch = a_pitch;
|
||||
yaw = a_yaw;
|
||||
sidew_move_joystick_axis = a_sidew_move_joystick_axis;
|
||||
|
@ -88,8 +88,8 @@ struct PlayerControl
|
|||
bool aux1 = false;
|
||||
bool sneak = false;
|
||||
bool zoom = false;
|
||||
bool LMB = false;
|
||||
bool RMB = false;
|
||||
bool dig = false;
|
||||
bool place = false;
|
||||
float pitch = 0.0f;
|
||||
float yaw = 0.0f;
|
||||
float sidew_move_joystick_axis = 0.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue