Commit graph

73 commits

Author SHA1 Message Date
Struma
342f30069f Add Mouse4, Mouse5 and scroll wheel bindings 2022-07-03 11:53:40 -04:00
Struma
2fb6510fd5 prevent launching with text input already enabled 2022-01-23 08:37:17 -05:00
Struma
683b5af87e Prevent crashes when closing the window during video playback 2022-01-23 04:03:50 -05:00
Struma
cb270888ba add Touch Bar support 2022-01-14 10:33:43 -05:00
Struma
35d776abd7 Make sure joysticks connected at startup are detectable by ruby 2021-08-21 03:52:50 -04:00
Struma
84c4f97c6c Add more detailed platform detection 2021-05-23 21:40:48 -04:00
Struma
f1f5f99133 Have window resizing functions properly wait on each other 2021-05-21 17:13:53 -04:00
Struma
4f6506e006 Do not wrap message box text on macOS
The sheet does this anyway, so there is no need to.
2021-03-16 06:31:42 -04:00
Joni Savolainen
c054b83178 Wrap text in message boxes 2021-03-14 15:12:26 +02:00
Struma
69a89cf87f sync thread access to text input buffer 2021-03-08 06:20:43 -05:00
Struma
1683483170 Make FPS counter a little more accurate 2021-03-01 01:51:15 -05:00
Struma
653eb0118b Remove haptic code 2021-02-23 17:25:07 -05:00
Struma
40ed422c3d fully functional Cocoa keybinding menu 2021-02-17 20:15:04 -05:00
Struma
0179e6a75b Revert "Remove haptics code"
Some part of this completely breaks the frame limiter.
I do not know which part
2020-12-25 19:41:16 -05:00
Struma
d565650975 Remove haptics code
It never worked anyway, as far as anyone knew, and is probably
not a feature anyone particularly needs.
2020-12-25 12:01:41 -05:00
Struma
65fc1f3f50 Fix loading OGG files with updated SDL_Sound 2020-11-21 22:37:07 -05:00
Struma
7e21066a70 Experimental Xcode builds (dependencies included) 2020-11-19 03:56:35 -05:00
Inori
d63f9958a3 misc additions 2019-09-21 19:47:51 -04:00
Inori
5b8d9e0100 Stop running rumble effects if duration is 0 2019-09-20 17:58:23 -04:00
Inori
582eee853b Test controller rumble support 2019-09-19 01:33:04 -04:00
Inori
4e7e7b740a Add MKXP.show_settings 2019-09-17 01:42:50 -04:00
Inori
939c601aea Add Input.joystick 2019-09-16 23:10:46 -04:00
Inori
8ed09b5d40 Limit size of waiting Input.gets text 2019-09-06 16:32:03 -04:00
Inori
ac28861587 Add text input functionality to Input module 2019-09-05 23:57:10 -04:00
Inori
6b007ed8d9 Implement Graphics.center 2019-08-31 12:55:03 -04:00
Inori
6f2a9d66cb Rename window from event thread 2019-08-31 01:41:04 -04:00
Inori
3c157daf34 Reposition window from event thread 2019-08-31 00:31:17 -04:00
Inori
141e06c7a0 Fix mouse visibility + coords with resized screen 2019-08-20 22:49:15 -04:00
Inori
b2b14abf2a Don't include alext.h when using Apple-provided OpenAL 2019-07-31 10:00:06 -04:00
Jonas Kulla
947974cac6 Config: Properly use windowTitle everywhere instead of game.title 2017-12-12 17:57:02 +01:00
Jonas Kulla
06feafe9ef Add missing include 2017-04-08 20:06:12 +02:00
Jonas Kulla
3ea24bd757 EventThread: Make system cursor visible over black aspect ratio bars
Should be less confusing for the player.
2017-04-08 18:45:24 +02:00
Jonas Kulla
47ef36ca19 EventThread: ifdef out broken SDL function on OSX 2016-02-24 17:55:28 +01:00
Jonas Kulla
de74fc1bc3 EventThread: Fix mouse cursor not being hidden 2016-02-24 17:45:55 +01:00
Jonas Kulla
7bf6eca362 EventThread: Comment out unneeded SDL2 constants 2015-07-26 23:56:50 +02:00
Jonas Kulla
e4bc08e972 Fix for old, broken OpenAL-Soft headers
See 4219b91bbb
2015-05-26 01:40:53 +02:00
Jonas Kulla
c92df0ce3a EventThread: Pause OpenAL device when entering background
This requires ALC_SOFT_pause_device to be present. It stops the
alc thread from needlessly consuming CPU resources.
2015-01-15 08:07:22 +01:00
Jonas Kulla
7c6a2b2c62 Pause RGSS execution when moving into background on Android
Assuming that there is enough memory for mkxp to stay in the
background and that the OS doesn't kill the process, this should
allow smooth resuming after moving back into the foreground.

For now, EGL context loss is not handled.
2015-01-15 08:02:21 +01:00
Jonas Kulla
a05a3deff6 EventThread: Factor out event discarding code 2015-01-03 20:48:31 +01:00
Jonas Kulla
7003039e56 EventThread: Track touch state (maximum 4 fingers) 2015-01-03 19:18:52 +01:00
Jonas Kulla
3411435138 Factor out some thread communication code (window size, bindings) 2015-01-02 01:41:23 +01:00
Jonas Kulla
9122446b23 EventThread: Discard fake mouse events on mobile 2014-12-31 18:52:21 +01:00
Jonas Kulla
7cbf81c83a Add 'printFPS' config entry to continuously print FPS to console
Useful on platforms that don't have window decorations.
2014-12-31 18:52:21 +01:00
David Salvisberg
90e1c09711 Added support for JHat events. 2014-12-31 16:39:28 +01:00
Jonas Kulla
4a8b0f30c8 MRI: Add 'System.raw_key_states' to query full keyboard state
Returns a byte array with all key states (0 = released,
1 = pressed) indexed via SDL_SCANCODE_* enums.
2014-10-20 10:27:01 +02:00
Jonas Kulla
dd73db2e9d Introduce F1 menu to reconfigure key bindings at runtime 2014-10-11 20:48:44 +02:00
Jonas Kulla
d223d83cbf Implement F12 game reset (MRI only)
Can be disabled with "enableReset=false".

While at it, also replace the flakey volatile bool flags
with proper atomics.
2014-09-26 06:25:47 +02:00
Jonas Kulla
50e393fe6e Graphics: Fix resize_screen 2014-08-22 23:57:12 +02:00
Jonas Kulla
840ecee084 Fix 'uninitialized value used' warnings 2014-08-16 11:47:07 +02:00
Jonas Kulla
24759fb97b EventThread: Simplify user event handling 2014-08-06 15:54:44 +02:00