Lilis Iskandar
f382722f5f
examples: Add gameloop example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2024-03-26 12:34:23 +08:00
Lilis Iskandar
4b17b2bbcf
examples: updated to remove pointer in event switch cases
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2023-11-30 15:00:44 +08:00
Lilis Iskandar
ec18b7ebf0
examples/shaped-window: update go.mod dependency to use go-sdl2 v0.4.31
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2023-02-04 11:53:50 +08:00
Lilis Iskandar
7120350bf7
examples: add shaped-window example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2023-02-04 11:52:30 +08:00
Lilis Iskandar
9f8a6a76d8
examples: add render-geometry example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2022-12-22 19:28:32 +08:00
Olivier Berthonneau
9495046876
Update loading-images with correct correct ( #10 )
...
Line 51 seems to have been a copy-paste of line 48.
BPM should be PNG in this comment.
2021-05-28 19:03:13 +08:00
Lilis Iskandar
29a79b36df
examples/render: fix window not showing up in macOS
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2021-03-07 14:51:04 +08:00
waschik
cebe7cd7f1
Fix compilation for messagebox and events ( #9 )
...
- remove length for message box buttons
- cast joystick id to int
2020-04-24 02:20:25 +08:00
Joshua Salzedo
03cd1562fd
Fixed init and button detection runtime ( #7 )
...
The JoyButtonEvent handler incorrectly checked the t.Type rather than the T.State when deciding whether a button was pressed or released.
The joystick constructor was missing an int cast.
2020-03-10 22:50:16 +08:00
Lilis Iskandar
756f6fc108
examples: android: add instructions for Windows
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2020-02-06 22:47:54 +08:00
Lilis Iskandar
cb1f77b851
examples: add joystick-input example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-12-21 20:23:23 +08:00
Lilis Iskandar
4b14f5f578
examples: add mouse-input example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-12-21 20:09:31 +08:00
Lilis Iskandar
e79e66a8c0
examples: add playing-audio-with-sdl2-mixer example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-12-21 13:36:29 +08:00
Lilis Iskandar
3311bb03ed
examples: add playing-audio-wav examples
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-12-21 13:14:23 +08:00
Lilis Iskandar
ec04384a3b
examples: add playing-audio examples
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-12-21 12:27:56 +08:00
Lilis Iskandar
41bf1cc99f
examples: add keyboard-input example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-12-16 22:52:27 +08:00
Lilis Iskandar
c29aa61c8c
examples: rewrite text example as drawing-text
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-12-15 20:13:20 +08:00
Lilis Iskandar
144230c86f
examples: add loading-images example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-12-15 19:34:27 +08:00
Lilis Iskandar
49f3ad72c6
examples: add recording-audio example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-12-15 12:58:14 +08:00
David Hudson
9f26a016aa
Add PollEvent so Window appears ( #5 )
2019-06-13 08:58:37 +08:00
Lilis Iskandar
548f2abfec
examples: add sdl.PollEvent() to allow window to show up on macOS
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-06-12 22:12:16 +08:00
Matt
b9da832c23
Fixed JoyDeviceEvent ( #2 )
...
JoyDeviceEvent is now broken up into JoyDeviceAddedEvent and JoyDeviceRemovedEvent, added these two cases to reflect those changes.
2018-12-17 09:02:26 +08:00
Lilis Iskandar
135df934c7
examples: Add audio_microphone example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2018-11-21 15:07:35 +08:00
Milan Nikolic
4298a5894b
Add Android example
2018-11-18 18:05:20 +01:00
Lilis Iskandar
b0d2a074f1
examples/events: Fix examples to build with latest go-sdl2
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2018-08-08 23:59:46 +00:00
Lilis Iskandar
48be04793a
Add examples/rwops/memory.go example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2018-08-01 02:44:04 +00:00
Lilis Iskandar
382efbbb8a
examples: opengl3: Update to work with latest binding
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2018-04-20 11:47:39 +08:00
Lilis Iskandar
73c0c7579b
examples: opengl: Update to work with latest binding
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2018-04-20 11:47:39 +08:00
Anton Malashin
d553067005
Add example for haptics ( #1 )
2018-03-05 22:26:02 +10:00
Lilis Iskandar
799a5a3170
examples: Add audio_network example
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2018-01-19 21:50:55 +08:00
Lilis Iskandar
1c170e23f8
Initial commit
...
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2018-01-18 09:51:32 +08:00