Browse Source

Cleanup redundant code (#1323)

components_nativedialogs
Wojciech Gryglas 3 years ago committed by GitHub
parent
commit
039b1ce774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      experimental/lwjgl-integration/src/main/kotlin/GlfwEvents.kt

5
experimental/lwjgl-integration/src/main/kotlin/GlfwEvents.kt

@ -15,11 +15,6 @@ import java.awt.event.MouseEvent
@OptIn(ExperimentalComposeUiApi::class)
fun ComposeScene.subscribeToGLFWEvents(windowHandle: Long) {
glfwSetMouseButtonCallback(windowHandle) { _, button, action, mods ->
when (action) {
GLFW_PRESS -> PointerEventType.Press
GLFW_RELEASE -> PointerEventType.Release
else -> PointerEventType.Unknown
}
sendPointerEvent(
position = glfwGetCursorPos(windowHandle),
eventType = when (action) {

Loading…
Cancel
Save