controller getaxisraw, calibration on startup

This commit is contained in:
minjaesong
2019-04-09 23:42:10 +09:00
parent c74fd0736a
commit a4eac2173a
6 changed files with 36 additions and 21 deletions

View File

@@ -36,7 +36,7 @@ class XinputControllerAdapter(val c: XInputDevice): TerrarumController {
return false
}
override fun getAxis(index: Int): Float {
override fun getAxisRaw(index: Int): Float {
if (c.poll()) {
val axes = c.components.axes