summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/talk.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/talk.zig b/examples/talk.zig
index f2a2d9c..2ad3d70 100644
--- a/examples/talk.zig
+++ b/examples/talk.zig
@@ -53,7 +53,7 @@ pub fn update(s: *State, in: *const sk.Input) void {
for (in.events) |e| switch (e.kind) {
// Every click is the presenter's, unless the talk takes it.
.mouse_up => ask.next = true,
- .key_down => switch (@as(sk.Key, @fromBackingInt(@intCast(@as(u8, @truncate(e.code)))))) {
+ .key_down => switch (e.key()) {
.space, .right, .page_down => ask.next = true,
.left, .page_up => ask.back = true,
.right_bracket => ask.next_slide = true,