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:
@ -92,7 +92,7 @@ public class GameController {
|
||||
//MARK: - Private
|
||||
|
||||
private var _joyInstance: SDL_JoystickID, _sdlPad: OpaquePointer
|
||||
private var _axes = [Int16](repeating: 0, count: Int(SDL_GAMEPAD_AXIS_MAX.rawValue))
|
||||
private var _axes = [Int16](repeating: 0, count: Int(SDL_GAMEPAD_AXIS_COUNT.rawValue))
|
||||
private var _btnCur: Buttons = [], _btnPrv: Buttons = []
|
||||
|
||||
internal var instanceID: SDL_JoystickID { _joyInstance }
|
||||
@ -167,8 +167,8 @@ public class GameController {
|
||||
}
|
||||
}
|
||||
|
||||
internal func buttonEvent(id: SDL_JoystickID, btn: SDL_GamepadButton, state: UInt8) {
|
||||
_pads[id]?.buttonEvent(btn, state == SDL_PRESSED)
|
||||
internal func buttonEvent(id: SDL_JoystickID, btn: SDL_GamepadButton, state: Bool) {
|
||||
_pads[id]?.buttonEvent(btn, state)
|
||||
}
|
||||
|
||||
internal func axisEvent(id: SDL_JoystickID, axis: SDL_GamepadAxis, value: Int16) {
|
||||
|
Reference in New Issue
Block a user