-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip refactor: cleanup & modernize display implementation
- Loading branch information
Showing
28 changed files
with
1,221 additions
and
1,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
modules/core/src/main/kotlin/org/polyfrost/spice/api/Mouse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
package org.polyfrost.spice.api | ||
|
||
import org.lwjgl.input.Mouse as LwjglMouse | ||
|
||
object Mouse { | ||
@JvmStatic | ||
fun isRawInputSupported(): Boolean = LwjglMouse.isRawInputSupported() | ||
fun isRawInputSupported(): Boolean = true | ||
@JvmStatic | ||
fun setRawInput(raw: Boolean) = LwjglMouse.setRawInput(raw) | ||
fun setRawInput(raw: Boolean) = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,13 @@ | ||
package org.lwjgl | ||
|
||
import org.lwjgl.glfw.GLFWErrorCallback | ||
|
||
@Suppress("unused") | ||
object Sys { | ||
private var initialized = false | ||
|
||
@JvmStatic | ||
fun getVersion(): String = Version.getVersion() | ||
|
||
@JvmStatic | ||
fun getTime(): Long = System.nanoTime() | ||
|
||
@JvmStatic | ||
fun getTimerResolution(): Long = 1000000000 | ||
|
||
@JvmStatic | ||
fun initialize() { | ||
if (initialized) return | ||
|
||
GLFWErrorCallback.createThrow().set() | ||
} | ||
} |
172 changes: 0 additions & 172 deletions
172
modules/lwjgl/src/main/kotlin/org/lwjgl/input/Keyboard.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.