Use GLFW gamepad instead of joystick.

This commit is contained in:
LambdAurora
2019-12-03 13:31:12 +01:00
parent 4fe7f70ffa
commit 597f581f0a
12 changed files with 607 additions and 175 deletions

View File

@@ -4,6 +4,9 @@
"lambdacontrols.menu.dead_zone": "Dead zone",
"lambdacontrols.menu.hud_side": "HUD side",
"lambdacontrols.menu.rotation_speed": "Rotation speed",
"lambdacontrols.menu.mouse_speed": "Mouse speed",
"lambdacontrols.controller.connected": "Controller %d connected.",
"lambdacontrols.controller.disconnected": "Controller %d disconnected.",
"lambdacontrols.controls_mode.default": "Keyboard/Mouse",
"lambdacontrols.controls_mode.controller": "Controller",
"lambdacontrols.controls_mode.touchscreen": "Touchscreen",

View File

@@ -9,13 +9,23 @@ controls = "default"
# Controller settings
[controller]
dead_zone = 0.25
rotation_speed = 25.0
# Controller to use.
id = 0
# Controller's dead zone.
dead_zone = 0.20
# Rotation speed for look directions.
rotation_speed = 40.0
# Mouse speed in GUI.
mouse_speed = 30.0
# Controller controls
[controller.controls]
attack = "button_7"
b = "button_1"
back = "axe_1+"
drop = "button_2"
dpad_up = "button_13"
dpad_right = "button_14"
dpad_down = "button_15"
dpad_left = "button_16"
forward = "axe_1-"
hotbar_left = "button_4"
hotbar_right = "button_5"
@@ -31,6 +41,7 @@ controls = "default"
view_left = "axe_2-"
view_right = "axe_2+"
view_up = "axe_3-"
x = "button_2"
# Colors
[colors]

View File

@@ -4,7 +4,7 @@
"compatibilityLevel": "JAVA_8",
"client": [
"AbstractButtonWidgetAccessor",
"AbstractContainerScreenAccessor",
"AbstractContainerScreenMixin",
"CreativeInventoryScreenMixin",
"GameRendererMixin",
"InGameHudMixin",