Commit graph

30 commits

Author SHA1 Message Date
刘皓
96238df023
Merge branch 'misc-fixes' into libretro 2025-02-07 17:58:10 -05:00
刘皓
dc798d4611
Fix typo in otherDirs in src/input/input.cpp 2025-02-07 13:47:07 -05:00
刘皓
f1ad41814a
Start implementing input for libretro builds 2025-02-04 23:47:54 -05:00
Splendide Imaginarius
de4740d973 Fix mouse position in hires mode 2024-07-29 02:51:45 +00:00
Splendide Imaginarius
f46e132945
Fix division by zero segfault (#28)
Bug was introduced in c9378cfaba

Thanks to Eblog for reporting the bug.
2023-10-08 22:32:38 -04:00
Amaryllis Kulla
fae7fa9c4e
Update ancurio's copyright notice (#29) 2023-10-04 15:07:34 -04:00
Struma
0072c19371 Multiple changes
+ Time is now measured in fractions of a second, not microseconds
+ Viewports in RGSS1 will now only retain weak references to their children
+ Invalid Sprite bitmaps found during Graphics.update will be treated as null
+ Bitmap#mega? and Bitmap#animated? are properly rescued
2023-05-03 23:00:06 -04:00
Struma
d7bf67fada fix Input::Controller.repeatex
computers suck
2023-04-27 22:01:24 -04:00
Snowdream
843e54de2e deal with a couple warnings, make sure xcode project still builds 2022-07-22 13:12:29 -04:00
Struma
f839001be9 Finish moving to GameController API, other stuff
Namely:
- moved raw input states from System to Input
- Input.raw_key_states returns Array<Boolean> now
- the Joystick hash has become an entire module
- added manual input handling for controller buttons
- Raw controller states for both buttons and axes can be polled
- mouse and raw keys are now captured between Input updates
2022-07-04 04:53:52 -04:00
Struma
5f4b644bd0 switch to a (mostly) functioning GameController API 2022-07-03 21:36:48 -04:00
Struma
342f30069f Add Mouse4, Mouse5 and scroll wheel bindings 2022-07-03 11:53:40 -04:00
Struma
c7ee8804ad Fix Input.repeat?
Also, Xcode-formatted Input.cpp because I can and no one can stop me
2021-08-09 07:01:28 -04:00
Struma
de4c5db79f Fix typo causing Input.repeat? to return true irregularly (Fixes #42) 2021-05-21 17:48:56 -04:00
Struma
d494ca9f08 Input.repeatex? should always return false for non-repeating keys 2021-04-28 17:22:46 -04:00
Struma
244421bac6 Let all buttons repeat 2021-03-01 14:25:38 -05:00
Struma
331f81a710 Make number keys available with NUMBER prefix 2021-02-26 06:25:06 -05:00
Struma
02c06be88a Add Ruby-accessible delta clocks (microseconds) 2021-02-25 21:29:21 -05:00
Struma
d4d2b7c7cb Keep input repeat timings independent of FPS 2021-02-25 19:28:44 -05:00
Struma
388b422b78 now you listen here, gcc warnings 2021-02-24 09:52:29 -05:00
Struma
38ee180d6e Enable repeating on mouse buttons 2021-02-24 09:35:31 -05:00
Struma
653eb0118b Remove haptic code 2021-02-23 17:25:07 -05:00
Struma
1d508b048a Input.count, Input.repeatcount, System.user_name 2021-02-22 18:36:53 -05:00
Struma
2fd585393d the not-so-great warning purge 2021-02-22 01:22:26 -05:00
Struma
1163ee9df5 Implement Input.release? and Input.releaseex? 2021-02-19 15:33:06 -05:00
Struma
4233d36b22 Allow setting keybinding names from config 2021-01-15 04:49:27 -05:00
Struma
5cc49efe2c "throw new Exception" -> "throw Exception"
I don't know why I had it this way tbh
2021-01-02 21:41:11 -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
f98b1e031f Reorganize src dir 2020-11-21 01:36:24 -05:00
Renamed from src/input.cpp (Browse further)