all: remove ineffective _ = variable
assignments (#530)
Lastest Zig complains about this, so they must removed to build.
This commit is contained in:
parent
0b57c0fdf3
commit
eee270b000
1 changed files with 0 additions and 2 deletions
|
@ -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))];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue