Skip to content

Commit 309acf6

Browse files
committed
up
1 parent 1cef944 commit 309acf6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import org.lwjgl.system.MemoryUtil
1111
import org.lwjgl.system.MemoryUtil.*
1212
import org.lwjgl.vulkan.VkInstance
1313
import vkk.appBuffer
14+
import java.nio.ByteBuffer
15+
import java.nio.FloatBuffer
1416

1517
/**
1618
* Created by GBarbieri on 24.04.2017.
@@ -296,6 +298,9 @@ open class GlfwWindow(var handle: Long) {
296298

297299
fun mouseButton(button: Int) = glfwGetMouseButton(handle, button)
298300

301+
fun getJoystickButtons(joystickId: Int): ByteBuffer? = glfwGetJoystickButtons(joystickId)
302+
fun getJoystickAxes(joystickId: Int): FloatBuffer? = glfwGetJoystickAxes(joystickId)
303+
299304
inline fun loop(block: () -> Unit) {
300305
while (isOpen) {
301306
glfwPollEvents()

0 commit comments

Comments
 (0)