all: remove ineffective _ = variable assignments (#530)

Lastest Zig complains about this, so they must removed to build.
This commit is contained in:
locriacyber 2022-09-14 16:42:29 +00:00 committed by GitHub
parent 0b57c0fdf3
commit eee270b000

View file

@ -62,13 +62,11 @@ const GamepadState = extern struct {
/// Returns the state of the specified gamepad button. /// Returns the state of the specified gamepad button.
pub fn getButton(self: @This(), which: GamepadButton) Action { pub fn getButton(self: @This(), which: GamepadButton) Action {
_ = self;
return @intToEnum(Action, self.buttons[@intCast(u32, @enumToInt(which))]); return @intToEnum(Action, self.buttons[@intCast(u32, @enumToInt(which))]);
} }
/// Returns the status of the specified gamepad axis, in the range -1.0 to 1.0 inclusive. /// Returns the status of the specified gamepad axis, in the range -1.0 to 1.0 inclusive.
pub fn getAxis(self: @This(), which: GamepadAxis) f32 { pub fn getAxis(self: @This(), which: GamepadAxis) f32 {
_ = self;
return self.axes[@intCast(u32, @enumToInt(which))]; return self.axes[@intCast(u32, @enumToInt(which))];
} }
}; };