We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cef944 commit 309acf6Copy full SHA for 309acf6
src/main/kotlin/uno/glfw/GlfwWindow.kt
@@ -11,6 +11,8 @@ import org.lwjgl.system.MemoryUtil
11
import org.lwjgl.system.MemoryUtil.*
12
import org.lwjgl.vulkan.VkInstance
13
import vkk.appBuffer
14
+import java.nio.ByteBuffer
15
+import java.nio.FloatBuffer
16
17
/**
18
* Created by GBarbieri on 24.04.2017.
@@ -296,6 +298,9 @@ open class GlfwWindow(var handle: Long) {
296
298
297
299
fun mouseButton(button: Int) = glfwGetMouseButton(handle, button)
300
301
+ fun getJoystickButtons(joystickId: Int): ByteBuffer? = glfwGetJoystickButtons(joystickId)
302
+ fun getJoystickAxes(joystickId: Int): FloatBuffer? = glfwGetJoystickAxes(joystickId)
303
+
304
inline fun loop(block: () -> Unit) {
305
while (isOpen) {
306
glfwPollEvents()
0 commit comments