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

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