We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
user_input
1 parent e1395c2 commit b3f8e31Copy full SHA for b3f8e31
examples/user_input/main.odin
@@ -21,9 +21,12 @@ main :: proc() {
21
t.move_cursor(&s, 0, 0)
22
t.write(&s, "Press `Esc` to exit")
23
24
+ t.move_cursor(&s, 2, 0)
25
+ t.writef(&s, "Bytes: %v", input)
26
+
27
kb_input, has_kb_input := t.parse_keyboard_input(input)
28
- t.move_cursor(&s, 2, 0)
29
+ t.move_cursor(&s, 4, 0)
30
t.write(&s, "Keyboard: ")
31
if has_kb_input && kb_input.key != .None {
32
t.writef(&s, "%v", kb_input)
@@ -32,7 +35,7 @@ main :: proc() {
35
}
33
36
34
37
mouse_input, has_mouse_input := t.parse_mouse_input(input)
- t.move_cursor(&s, 4, 0)
38
+ t.move_cursor(&s, 6, 0)
39
t.write(&s, "Mouse: ")
40
if has_mouse_input {
41
t.writef(&s, "%v", mouse_input)
0 commit comments