mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-17 00:56:07 +09:00
Renamed AppLoader into App
This commit is contained in:
@@ -2,7 +2,7 @@ package net.torvald.terrarum.controller
|
||||
|
||||
import com.github.strikerx3.jxinput.XInputAxes
|
||||
import com.github.strikerx3.jxinput.XInputDevice
|
||||
import net.torvald.terrarum.AppLoader
|
||||
import net.torvald.terrarum.App
|
||||
import kotlin.math.roundToInt
|
||||
|
||||
/**
|
||||
@@ -26,8 +26,8 @@ class XinputControllerAdapter(val c: XInputDevice): TerrarumController {
|
||||
5 -> button.rShoulder
|
||||
6 -> button.back
|
||||
7 -> button.start
|
||||
8 -> getAxis(4) >= AppLoader.gamepadDeadzone
|
||||
9 -> getAxis(5) >= AppLoader.gamepadDeadzone
|
||||
8 -> getAxis(4) >= App.gamepadDeadzone
|
||||
9 -> getAxis(5) >= App.gamepadDeadzone
|
||||
10 -> button.lThumb
|
||||
11 -> button.rThumb
|
||||
else -> throw UnsupportedOperationException("Unknown button: $index")
|
||||
|
||||
Reference in New Issue
Block a user