core: remove unimplemented joystick API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-08-25 15:57:18 -07:00
parent 19afd254b9
commit 1fab277bf7
4 changed files with 0 additions and 107 deletions

View file

@ -15,7 +15,6 @@ const CursorMode = Core.CursorMode;
const Position = Core.Position;
const Key = Core.Key;
const KeyMods = Core.KeyMods;
const Joystick = Core.Joystick;
const objc = @import("objc");
const log = std.log.scoped(.mach);
@ -198,26 +197,6 @@ pub fn setCursorShape(_: *Darwin, _: CursorShape) void {
return;
}
// May be called from any thread.
pub fn joystickPresent(_: *Darwin, _: Joystick) bool {
return false;
}
// May be called from any thread.
pub fn joystickName(_: *Darwin, _: Joystick) ?[:0]const u8 {
return null;
}
// May be called from any thread.
pub fn joystickButtons(_: *Darwin, _: Joystick) ?[]const bool {
return null;
}
// May be called from any thread.
pub fn joystickAxes(_: *Darwin, _: Joystick) ?[]const f32 {
return null;
}
// May be called from any thread.
pub fn keyPressed(_: *Darwin, _: Key) bool {
return false;