Skip to content

Commit 0452df6

Browse files
committed
getJoystickAxes
1 parent bf73b40 commit 0452df6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/uno/glfw/GlfwWindow.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import uno.buffer.destroyBuf
1111
import uno.buffer.doubleBufferBig
1212
import uno.buffer.intBufferBig
1313
import java.nio.ByteBuffer
14+
import java.nio.FloatBuffer
1415

1516
/**
1617
* Created by GBarbieri on 24.04.2017.
@@ -310,4 +311,5 @@ class GlfwWindow(val handle: Long) {
310311
}
311312

312313
fun getJoystickButtons(joystickId: Int): ByteBuffer? = glfwGetJoystickButtons(joystickId)
314+
fun getJoystickAxes(joystickId: Int): FloatBuffer? = glfwGetJoystickAxes(joystickId)
313315
}

0 commit comments

Comments
 (0)