touch
Parameters
- self:Button
- Button
Source
Implementation
pub fn touch(self: Button) bool {
const s = @intFromEnum(self);
const start = @intFromEnum(Button.touch0);
const end = @intFromEnum(Button.touch9);
return (s >= start and s <= end);
}