Disable joysticks without SDL2
(cherry picked from commit 9b1209a68a4ae51f38dd2ebc97a7c168e9cacfc8)
This commit is contained in:
parent
e7d88cca42
commit
6fbceface0
@ -143,7 +143,7 @@ fixed_virtual_joystick (Fixed virtual joystick) bool false
|
|||||||
virtual_joystick_triggers_aux (Virtual joystick triggers aux button) bool false
|
virtual_joystick_triggers_aux (Virtual joystick triggers aux button) bool false
|
||||||
|
|
||||||
# Enable joysticks
|
# Enable joysticks
|
||||||
enable_joysticks (Enable joysticks) bool false
|
enable_joysticks (Enable joysticks) bool true
|
||||||
|
|
||||||
# The identifier of the joystick to use
|
# The identifier of the joystick to use
|
||||||
joystick_id (Joystick ID) int 0
|
joystick_id (Joystick ID) int 0
|
||||||
@ -156,7 +156,7 @@ joystick_type (Joystick type) enum auto auto,generic,xbox
|
|||||||
repeat_joystick_button_time (Joystick button repetition interval) float 0.17 0.001
|
repeat_joystick_button_time (Joystick button repetition interval) float 0.17 0.001
|
||||||
|
|
||||||
# The deadzone of the joystick
|
# The deadzone of the joystick
|
||||||
joystick_deadzone (Joystick deadzone) int 2048
|
joystick_deadzone (Joystick deadzone) int 4096
|
||||||
|
|
||||||
# The sensitivity of the joystick axes for moving the
|
# The sensitivity of the joystick axes for moving the
|
||||||
# ingame view frustum around.
|
# ingame view frustum around.
|
||||||
|
@ -118,7 +118,7 @@
|
|||||||
|
|
||||||
# Enable joysticks
|
# Enable joysticks
|
||||||
# type: bool
|
# type: bool
|
||||||
# enable_joysticks = false
|
# enable_joysticks = true
|
||||||
|
|
||||||
# The identifier of the joystick to use
|
# The identifier of the joystick to use
|
||||||
# type: int
|
# type: int
|
||||||
@ -135,7 +135,7 @@
|
|||||||
|
|
||||||
# The deadzone of the joystick
|
# The deadzone of the joystick
|
||||||
# type: int
|
# type: int
|
||||||
# joystick_deadzone = 2048
|
# joystick_deadzone = 4096
|
||||||
|
|
||||||
# The sensitivity of the joystick axes for moving the
|
# The sensitivity of the joystick axes for moving the
|
||||||
# ingame view frustum around.
|
# ingame view frustum around.
|
||||||
|
@ -290,12 +290,16 @@ void set_default_settings()
|
|||||||
settings->setDefault("always_fly_fast", "true");
|
settings->setDefault("always_fly_fast", "true");
|
||||||
settings->setDefault("autojump", "false");
|
settings->setDefault("autojump", "false");
|
||||||
settings->setDefault("continuous_forward", "false");
|
settings->setDefault("continuous_forward", "false");
|
||||||
|
#if defined(_IRR_COMPILE_WITH_SDL_DEVICE_)
|
||||||
settings->setDefault("enable_joysticks", "true");
|
settings->setDefault("enable_joysticks", "true");
|
||||||
|
#else
|
||||||
|
settings->setDefault("enable_joysticks", "false");
|
||||||
|
#endif
|
||||||
settings->setDefault("joystick_id", "0");
|
settings->setDefault("joystick_id", "0");
|
||||||
settings->setDefault("joystick_type", "");
|
settings->setDefault("joystick_type", "");
|
||||||
settings->setDefault("repeat_joystick_button_time", "0.17");
|
settings->setDefault("repeat_joystick_button_time", "0.17");
|
||||||
settings->setDefault("joystick_frustum_sensitivity", "170");
|
settings->setDefault("joystick_frustum_sensitivity", "170");
|
||||||
settings->setDefault("joystick_deadzone", "2048");
|
settings->setDefault("joystick_deadzone", "4096");
|
||||||
|
|
||||||
// Main menu
|
// Main menu
|
||||||
settings->setDefault("main_menu_path", "");
|
settings->setDefault("main_menu_path", "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user