mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 05:10:57 +00:00
Fix build errors against release SDL 3.2.0 ABI
This commit is contained in:
@ -53,8 +53,8 @@ public class Mouse {
|
||||
private func getAbsolute() -> SIMD2<Float> { self._abs * self._dpiScale }
|
||||
private func getDelta() -> SIMD2<Float> { self._delta }
|
||||
|
||||
internal func buttonEvent(btn: UInt32, state: UInt8) {
|
||||
if state == SDL_PRESSED {
|
||||
internal func buttonEvent(btn: UInt32, state: Bool) {
|
||||
if state {
|
||||
self._btns.formUnion(.init(rawValue: btn.buttonMask))
|
||||
} else {
|
||||
self._btns.subtract(.init(rawValue: btn.buttonMask))
|
||||
|
Reference in New Issue
Block a user