gingerBill
408b3af550
Merge pull request #4933 from laytan/js-open-binding
...
core/sys/wasm/js: add `open` binding to `window.open`
2025-03-13 09:22:20 +00:00
gingerBill
35340de928
Merge pull request #4932 from laytan/js-pointer-event-and-charcode
...
core/sys/wasm/js: add pointer event info and add charCode to keyboard
2025-03-13 09:22:03 +00:00
gingerBill
5a12190f51
Merge pull request #4931 from laytan/webgl-improvements
...
webgl: add `BlendEquationSeparate` and `GetParameter4i`
2025-03-13 09:21:44 +00:00
Laytan Laats
6691acfa03
core/sys/wasm/js: add open binding to window.open
2025-03-12 18:43:03 +01:00
Laytan Laats
b76fd84084
webgl: add BlendEquationSeparate and GetParameter4i
...
`GetParameter4i` can be used to retrieve the current scissor rect, or
the curent viewport, which was previously impossible.
Also adds `BlendEquationSeparate` which seemed to be missing.
Also removes an instance of `do`.
2025-03-12 18:39:57 +01:00
Laytan Laats
00ac48c06c
core/sys/wasm/js: add pointer event info and add charCode to keyboard events
2025-03-12 18:37:42 +01:00
Laytan Laats
d349c96071
core/sys/wasm/js: improve gamepad API
...
1. Properly set `id` and `mapping` on the `get_gamepad_state` result
2. Increase `id` limit to 96 bytes, connecting my DualShock 4 made it crash
3. If an `id` or `mapping` is longer than the limits, slice it and add `...`
2025-03-12 18:32:51 +01:00
Laytan Laats
1511162b0a
webgpu: fix cstring as parameter not loading correctly
2025-01-09 17:29:31 +01:00
p2jason
2beb495140
Increase size of JS keyboard event key/code buffer size
2024-11-12 13:37:08 +13:00
Laytan
7cfaf0b181
Merge pull request #4415 from p2jason/master
...
Remove the event queue from odin.js and directly invoke callbacks so they are executed in context where prevent default is possible
2024-11-01 19:48:36 +01:00
p2jason
94acfaf21e
Removed event hook callback from add_*_event_listener functions
2024-10-31 13:15:39 +00:00
p2jason
e825326d73
Removed event queue from add_*_event_listener JS functions and added event hook callback
2024-10-31 13:02:46 +00:00
Laytan Laats
bd38b4839c
sys/wasm/js: add set_element_style
2024-10-26 22:41:14 +02:00
p2jason
cf89526a9f
Changed boolean parameters to bit set in the add_*_event_listener functions
2024-10-25 12:45:24 +01:00
p2jason
8371995bfc
Added parameters to the add_*_event_listener JS functions for stopping event behavior
2024-10-24 23:27:40 +01:00
gingerBill
4a616d97df
Pass delta time instead of current time to odin.js step
2024-09-29 10:14:56 +01:00
gingerBill
95721fe296
Add gamepad support
2024-09-22 19:29:05 +01:00
gingerBill
66e83ef30d
Add gamepad events
2024-09-22 16:24:46 +01:00
gingerBill
94288161e9
Add new js events
2024-09-22 15:52:04 +01:00
gingerBill
634fa7aa30
Move vendor:wasm/js to core:sys/wasm/js
2024-09-22 13:13:34 +01:00
Karl Zylinski
19f0127e55
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
2024-09-14 18:27:49 +02:00
Laytan Laats
a2cd763dbb
time: wasi implementation
2024-08-10 23:01:31 +02:00
gingerBill
9f9abb8fb3
Use union #shared_nil for os.Error
2024-08-04 11:05:30 +01:00
Laytan Laats
4e18e1b191
wasi: make os.open work with absolute paths
2024-07-02 15:29:24 +02:00
gingerBill
c1eb536726
Change to "contextless" from "c"`
2023-05-29 23:30:48 +01:00
gingerBill
220dfd7440
Minor clean up of wasi_api.odin
2022-07-25 17:00:32 +01:00
gingerBill
c13c30b466
Update wasi to use string and slice types
2021-10-31 15:21:39 +00:00
gingerBill
0c1675c8b0
Correct string usage
2021-10-31 15:01:13 +00:00
gingerBill
906c7ef0fc
Correct wasi linking
2021-10-31 13:04:28 +00:00
gingerBill
c6e08b059b
Move sys/wasi to sys/wasm/wasi
2021-10-31 12:30:10 +00:00