Fix build errors against release SDL 3.2.0 ABI

This commit is contained in:
2025-01-27 01:21:30 +11:00
parent 31ef295f52
commit a40686a87c
4 changed files with 9 additions and 9 deletions

View File

@ -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))