Skip to content

Commit

Permalink
add dynamic literals feature to wgpu microui example
Browse files Browse the repository at this point in the history
Fixes #107
  • Loading branch information
laytan committed Feb 12, 2025
1 parent 69881d2 commit 0a103d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
odin check wasm/js_wasm32 $FLAGS
odin check wgpu/microui -target:windows_amd64 $FLAGS
odin check wgpu/microui -target:js_wasm32 $FLAGS
odin check win32/game_of_life -target:windows_amd64 $FLAGS
odin check win32/open_window -target:windows_amd64 $FLAGS
Expand Down
3 changes: 2 additions & 1 deletion wgpu/microui/os_js.odin
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#+feature dynamic-literals
package vendor_wgpu_example_microui

import "core:sys/wasm/js"
Expand Down Expand Up @@ -88,7 +89,7 @@ os_get_clipboard :: proc(_: rawptr) -> (string, bool) {

@(private="file")
KEY_MAP := map[string]mu.Key{
"ShiftLeft" = .SHIFT,
"ShiftLeft" = .SHIFT,
"ShiftRight" = .SHIFT,
"ControlLeft" = .CTRL,
"ControlRight" = .CTRL,
Expand Down

0 comments on commit 0a103d5

Please sign in to comment.