mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 13:02:07 +00:00
e7199f5c41
By default joystick "in_joystick" and haptic feedback haptic ("joy_haptic_magnitude") are disabled. And can be anabled by menu in options section. Joystick/Haptic options are showed only if have found any. By default axis is mapped in such way: * Left X(joy_axis_leftx): sidemove * Left Y(joy_axis_lefty): forwardmove * Right X(joy_axis_rightx): yaw * Right Y(joy_axis_righty): pitch * Trigger Left(joy_axis_triggerleft): triggerleft * Trigger Right(joy_axis_triggerright): triggerright Joystick sensitivity varibales: * joy_yawsensitivity, * joy_pitchsensitivity, * joy_forwardsensitivity, * joy_sidesensitivity, * joy_upsensitivity. For change joystick axis mapping to gamecontoller axis export SDL_GAMECONTROLLERCONFIG before run, e.g.: SDL_GAMECONTROLLERCONFIG='<joystick guid>,<joystick name>,leftx:a0,lefty:a1,rightx:a2,righty:a3,' Add menu navigation by dpad and thresholds: * Add threshold for axis (based on ioquake3), 0.15 by defaults. * Navigate in menus by dpad (up/down, left/right, any joystick button for enter). Defaults: * in_joystick "0.0" * joy_haptic_magnitude "0.0" * joy_axis_leftx "sidemove" * joy_axis_leftx_threshold "0.15" * joy_axis_lefty "forwardmove" * joy_axis_lefty_threshold "0.15" * joy_axis_rightx "yaw" * joy_axis_rightx_threshold "0.15" * joy_axis_righty "pitch" * joy_axis_righty_threshold "0.15" * joy_axis_triggerleft "triggerleft" * joy_axis_triggerleft_threshold "0.15" * joy_axis_triggerright "triggerright" * joy_axis_triggerright_threshold "0.15" * joy_forwardsensitivity "1.0" * joy_pitchsensitivity "1.0" * joy_sidesensitivity "1.0" * joy_upsensitivity "1.0" * joy_yawsensitivity "1.0" |
||
---|---|---|
.. | ||
backends | ||
client | ||
common | ||
game | ||
server |