Commit graph

9 commits

Author SHA1 Message Date
Stephen Gutekanst
8a14d56fc3 glfw: ziggify all Action enums
Make the GLFW action enumerations proper Zig enums so one can use `.Name` syntax, etc.

Helps #37

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-29 21:27:20 -07:00
Aksel Hjerpbakk
1a3f391891
glfw: enums (#41)
* move key values in an enum

* bitmask for key modifiers

* export Key type and move key fns

instead of exporting the key file, export Key enum.
functions related to the Key type are moved into the enum as well so that they get exported with the type
2021-10-24 06:23:20 -07:00
Stephen Gutekanst
8df9c19e5b glfw: add glfw.key.getScancode
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-23 19:33:33 -07:00
Stephen Gutekanst
3e466da662 glfw: add glfw.key.getName
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-23 19:33:33 -07:00
Stephen Gutekanst
6e3687e3aa glfw: correct C import
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-23 19:33:33 -07:00
Stephen Gutekanst
7d9b626b11 glfw: move remaining input TODOs to final locations
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-22 00:35:34 -07:00
Stephen Gutekanst
7cae2818f3 glfw: correct C key / C import conflict
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 15:07:26 -07:00
Stephen Gutekanst
3b2f39daaa glfw: add mouse button IDs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:20:32 -07:00
Stephen Gutekanst
f8a6f2fd74 glfw: add keyboard key ID constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:11:12 -07:00