mach: remove Action enum and all references to it
This commit is contained in:
parent
7486b0ebea
commit
f1e7c10fbb
2 changed files with 0 additions and 14 deletions
|
|
@ -1,9 +1,3 @@
|
|||
pub const Action = enum {
|
||||
release,
|
||||
press,
|
||||
repeat,
|
||||
};
|
||||
|
||||
pub const Key = enum {
|
||||
a,
|
||||
b,
|
||||
|
|
|
|||
|
|
@ -105,14 +105,6 @@ pub const CoreGlfw = struct {
|
|||
return null;
|
||||
}
|
||||
|
||||
fn toMachAction(action: glfw.Action) enums.Action {
|
||||
return switch (action) {
|
||||
.press => .press,
|
||||
.release => .release,
|
||||
.repeat => .repeat,
|
||||
};
|
||||
}
|
||||
|
||||
fn toMachKey(key: glfw.Key) enums.Key {
|
||||
return switch (key) {
|
||||
.a => .a,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue