Commit graph

187 commits

Author SHA1 Message Date
Stephen Gutekanst
d29baba18e glfw: correctly check for Monitor.getAll errors
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 14:02:07 -07:00
Stephen Gutekanst
fd28f51936 glfw: inline Monitor functions
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 14:00:57 -07:00
Stephen Gutekanst
119f896e35 glfw: always check init errors
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 13:59:26 -07:00
Stephen Gutekanst
631cfbfc66 glfw: add Monitor.setUserPointer, Monitor.getUserPointer
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 12:58:11 -07:00
Stephen Gutekanst
44fdfc641e glfw: add Monitor.getName function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 12:58:11 -07:00
Stephen Gutekanst
e1a8f97385 glfw: add Monitor.getContentScale
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 12:58:11 -07:00
Stephen Gutekanst
fda6959724 glfw: add Monitor.getPhysicalSize
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 12:58:11 -07:00
Stephen Gutekanst
7606092329 glfw: only keep test window open for 100ms
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 17:09:28 -07:00
Stephen Gutekanst
e5da72afc2 glfw: add monitor.getWorkarea
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 17:07:48 -07:00
Stephen Gutekanst
0b6f209cbb glfw: add Monitor.getPos
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:57:50 -07:00
Stephen Gutekanst
3844558b0f glfw: correctly test Monitor implementation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:56:58 -07:00
Stephen Gutekanst
070649e0dc glfw: add monitors.getPrimary
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:42:03 -07:00
Stephen Gutekanst
f382d1ab2b glfw: add monitor.getAll support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:36:57 -07:00
Stephen Gutekanst
5e9b7d57d2 glfw: make init inline
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:35:42 -07:00
Stephen Gutekanst
8e785d3443 glfw: add getVersionString
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:00:28 -07:00
Stephen Gutekanst
2cb8704851 glfw: add initHint function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 15:50:35 -07:00
Stephen Gutekanst
84ef0a591e glfw: add terminate function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 15:24:45 -07:00
Stephen Gutekanst
a19f73f1e4 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
041d328721 glfw: add init function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 15:07:06 -07:00
Stephen Gutekanst
bf4f718357 glfw: add error handling
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 15:06:35 -07:00
Stephen Gutekanst
f384e88dc1 glfw: add C -> Zig error translation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 14:27:34 -07:00
Stephen Gutekanst
13423c0903 glfw: add general constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 13:26:11 -07:00
Stephen Gutekanst
8c40f4e4c5 glfw: add gamepad button IDs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:31:53 -07:00
Stephen Gutekanst
ad3e656d83 glfw: add gamepad axis
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:31:22 -07:00
Stephen Gutekanst
22a3a05c3c glfw: add joystick IDs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:24:08 -07:00
Stephen Gutekanst
c6916317e3 glfw: add mouse button IDs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:20:32 -07:00
Stephen Gutekanst
019e2ea918 glfw: add modifier key flags
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:15:49 -07:00
Stephen Gutekanst
0fe1a2f840 glfw: add keyboard key ID constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:11:12 -07:00
Stephen Gutekanst
15c072c20c glfw: correct comment style
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:52:38 -07:00
Stephen Gutekanst
a7267d9acc glfw: add joystick hat states
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:41:51 -07:00
Stephen Gutekanst
33173940ef glfw: add top-level comments
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:36:31 -07:00
Stephen Gutekanst
09674bc655 glfw: move constants into separate modules
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:34:18 -07:00
Stephen Gutekanst
d4186e45e3 glfw: add key/button action constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:31:02 -07:00
Stephen Gutekanst
2faad21f70 glfw: add version constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:21:51 -07:00
Stephen Gutekanst
0565c326b4 CI: add macOS testing pipeline (#2)
* CI: add macOS testing pipeline
* glfw: use hidden window

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 10:57:37 -07:00
Stephen Gutekanst
f9150de8d0 glfw: macOS cross compilation with automatic setup
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 01:01:51 -07:00
Stephen Gutekanst
8421f21e3a glfw: add basic example, building+linking on macOS is working
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-06 20:53:10 -07:00