summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mrbgems/raylib/mrblib/raylib.rb4
-rw-r--r--study-player.cfg4
2 files changed, 8 insertions, 0 deletions
diff --git a/mrbgems/raylib/mrblib/raylib.rb b/mrbgems/raylib/mrblib/raylib.rb
index fee49f5..7e6542c 100644
--- a/mrbgems/raylib/mrblib/raylib.rb
+++ b/mrbgems/raylib/mrblib/raylib.rb
@@ -17,6 +17,10 @@ module Rl
backspace: :KEY_BACKSPACE, up: :KEY_UP, down: :KEY_DOWN, left: :KEY_LEFT,
right: :KEY_RIGHT, left_shift: :KEY_LEFT_SHIFT, left_control: :KEY_LEFT_CONTROL
}.each { |sym, const| SYMBOL_KEYS[sym] = const_get(const) if const_defined?(const) }
+ # Function keys F1-F12 (raylib keycodes 290-301). Added so :f2 etc. resolve —
+ # the KEY_F* constants aren't all exposed to mruby, so use the int values.
+ { f1: 290, f2: 291, f3: 292, f4: 293, f5: 294, f6: 295, f7: 296, f8: 297,
+ f9: 298, f10: 299, f11: 300, f12: 301 }.each { |sym, kc| SYMBOL_KEYS[sym] = kc }
class << self
def resolve_key(key)
diff --git a/study-player.cfg b/study-player.cfg
new file mode 100644
index 0000000..dd28296
--- /dev/null
+++ b/study-player.cfg
@@ -0,0 +1,4 @@
+# Study Player config
+window_width=1280
+window_height=720
+study_mode_default=false