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;

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;

View file

@ -17,7 +17,6 @@ const CursorMode = Core.CursorMode;
const Position = Core.Position;
const Key = Core.Key;
const KeyMods = Core.KeyMods;
const Joystick = Core.Joystick;
const EventQueue = std.fifo.LinearFifo(Event, .Dynamic);
const Win32 = @This();
@ -291,19 +290,6 @@ pub fn mousePosition(self: *Win32) Position {
return self.input_state.mouse_position;
}
pub fn joystickPresent(_: *Win32, _: Joystick) bool {
@panic("NOT IMPLEMENTED");
}
pub fn joystickName(_: *Win32, _: Joystick) ?[:0]const u8 {
@panic("NOT IMPLEMENTED");
}
pub fn joystickButtons(_: *Win32, _: Joystick) ?[]const bool {
@panic("NOT IMPLEMENTED");
}
// May be called from any thread.
pub fn joystickAxes(_: *Win32, _: Joystick) ?[]const f32 {
@panic("NOT IMPLEMENTED");
}
pub fn nativeWindowWin32(self: *Win32) w.HWND {
return self.window;
}