Commit Graph

48 Commits

Author SHA1 Message Date
Henrik Rydgård
e0c12c9547 More lint warning fixes 2024-10-10 10:52:45 +02:00
Henrik Rydgård
63181374c7 Finish previous commit 2023-12-29 17:24:15 +01:00
Henrik Rydgård
f42e9d94a3 Show the tilt input type directly on the item that goes to the tilt settings 2023-12-29 14:10:03 +01:00
Henrik Rydgård
94fb81466f Tilt: Make the deadzone circular, in addition to the inverse (low end radius). 2023-12-12 17:55:13 +01:00
Henrik Rydgård
25ab1206b5 Fix stepping of tilt low end radius setting. Add some asserts. 2023-11-06 18:33:05 -06:00
Henrik Rydgård
3b004e7a4b Remove the last use of accelerometer axis events (calibration) 2023-09-27 11:33:40 +02:00
Henrik Rydgård
e0c5857927 Tilt analog settings: Fix failure to reinitialize tilt_ when creating views.
This caused crashes due to tilt_ ending up pointing to a deleted object
after recreate instead of null (in which case we would have avoided the
writes).

Fixes #18105
2023-09-08 15:50:57 +02:00
Henrik Rydgård
2675d6ea43
Input event and device enums (#17514)
* Switch deviceID from int to enum InputDeviceID, globally

* Switch axisId to enum InputAxis

* Change int keycodes to InputKeyCode where it makes sense.

* SDL input buildfix

* SDL keycode buildfix

* Switch on enum warning fixes

* Qt keycode buildfix

* iOS keycode buildfix

* UWP keycode buildfix

* More iOS buildfix

* More iOS buildfix

* Update DinputDevice.cpp
2023-05-26 18:40:13 +02:00
Henrik Rydgård
2ceb9942f3 Tilt: Add back inverse deadzone (low end radius). Allow choosing circular or per-axis. 2023-05-22 10:13:57 +02:00
Henrik Rydgård
ee6234ecb6 I18N: Switch to getting categories by index instead of by string lookup
Also gets rid of the shared_ptr usage, and generally makes things nicer.

Needed for later config refactorings, good to get in early.
2023-04-07 10:35:01 +02:00
Henrik Rydgård
6f9339b011 Add defaults for all int-slider settings too 2023-04-05 10:50:53 +02:00
Henrik Rydgård
4e0babc950 Add a "reset to default" for all float-slider settings
Unfortunately, the default values from the configs are not exposed
outside Config.cpp, so there's duplication.

Need to figure out how to do fix that, but it's out-of-scope for this
PR.
2023-04-05 10:50:53 +02:00
Henrik Rydgård
64e80423a6 Simplify the tilt code, tweak a bit 2023-02-16 11:07:57 +01:00
Henrik Rydgård
7d40ed6ba1 Tilt control: Split the deadzone parameter since it needs to be different for different types.
Can at least share the string without problems.

Also rearrange the settings a little bit.
2023-02-11 23:42:55 +01:00
Henrik Rydgård
af8e4cd36b Fixes for portrait mode. Move the haptic feedback setting where it belongs. 2023-02-02 11:59:56 +01:00
Henrik Rydgård
cdca958781 Change "Customize tilt..." to "Tilt control setup" 2023-02-02 11:05:33 +01:00
Henrik Rydgård
6b7a51d73e Move tilt type selector into the customization dialog 2023-02-02 11:05:29 +01:00
Henrik Rydgård
59dec197d8 Add previews for more types, fix mappings. 2023-02-02 01:09:33 +01:00
Henrik Rydgård
1f51a31544 Remove the separate deadzone-skip value. 2023-02-02 01:09:30 +01:00
Henrik Rydgård
4aeb1ef703 Better math, fix tilt calibration (was entirely broken) 2023-02-02 01:01:05 +01:00
Henrik Rydgård
9e3cc66809 Tilt: Add visualizer to customize tilt dialog. Improve defaults. 2023-02-01 15:35:57 +01:00
Henrik Rydgård
a88bafff4d Break out the JoystickHistoryView 2023-02-01 14:58:16 +01:00
Henrik Rydgård
102607a6e8 Code style fixes, translation key fix, cleanup 2023-02-01 14:24:55 +01:00
Henrik Rydgård
07114c6aaf Remove return value from axis functions in API 2023-01-10 10:12:37 +01:00
Unknown W. Brackets
d5a9525fff UI: Cleanup another header misuse. 2021-09-27 17:47:15 -07:00
Henrik Rydgård
528b4d2f32 Fix another couple of translation mistakes from the big fixup 2021-09-22 09:15:43 +02:00
Henrik Rydgård
7733d8a500
Merge pull request #12530 from iota97/tilt
Allow tilt input on Z instead of X
2021-08-21 13:55:18 +02:00
Unknown W. Brackets
3360121b5c UI: Expose lists better in descriptions.
Explicitly marks several lists, which should make exposing text better.
2021-02-21 18:41:08 -08:00
Henrik Rydgård
ff8148dd92 Move native/util, native/data and native/i18 to Common/Data.
Also move colorutil.cpp/h

linking build fix experiment

Delete a bunch of unused CMakeLists.txt files

CMakeLists.txt linking fix

Don't include NativeApp.h from any headers.

Android.mk buildfix

Half of the UWP fix

Buildfix

Minor project file cleanup

Buildfixes

Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
iota97
c47478ea04 Rewording 2020-06-04 19:16:26 +02:00
iota97
a56e56cf53 Auto switch option 2020-06-04 19:16:25 +02:00
iota97
d79b451188 Allow tilt input on Z instead of X 2020-06-04 19:16:25 +02:00
iota97
4d6fc424cd Skip deadzone option on tilt 2020-03-23 19:23:30 +01:00
Unknown W. Brackets
5009698cc0 Core: Use a shared_ptr for i18n categories.
This does not make them thread safe, but it reduces the chances of a crash
a bit (see #12594.)
2020-02-09 07:35:16 -08:00
Unknown W. Brackets
9e390510df Remove legacy InputState. 2017-03-14 22:07:07 -07:00
Unknown W. Brackets
2a745f86ac Switch to axis for accelerometer usage. 2017-03-14 22:07:03 -07:00
Unknown W. Brackets
c0238de4ee UI: Add tags to all the scroll views. 2016-01-22 22:52:13 -08:00
Carl Kenner
bf84fda058 Improve pop-up UI for integer slider screens. Add a text entry box and units.
# Conflicts:
#	UI/GameSettingsScreen.cpp
2015-11-06 18:55:36 +10:30
Carl Kenner
064a09bda4 Improve PopupSliderChoiceFloat to make it more usable for VR settings.
It now has a text input box.
+/- buttons are on the next line so you can cursor along slider.
And the units are optionally displayed.

# Conflicts:
#	UI/GameSettingsScreen.cpp
2015-11-06 18:42:34 +10:30
vnctdj
d7eba2061e Consistently use *di for the Dialog i18n category 2015-07-01 23:26:55 +02:00
vnctdj
d48ee947ac Consistently use *co for the Controls i18n category 2015-07-01 22:31:04 +02:00
Henrik Rydgard
d7b0287e7a Make a string translatable in tilt settings dialog 2014-03-20 00:29:34 +01:00
bhavin192
64c40f75fc Add back button to TiltAnalogSettingsScreen
fixed up by hrydgard
2013-10-29 10:05:47 +01:00
Henrik Rydgård
7a83deaeea Android build: Set -march=armv6 for our armeabi build, we don't support
anything lower anyway.
2013-10-28 16:46:16 +01:00
Henrik Rydgård
787db5812d UI cleanup and a crashfix for duplicate back key events 2013-10-28 16:04:53 +01:00
Siddharth
c7bb50ef00 some more indentation fixed 2013-10-28 16:58:46 +05:30
Siddharth
5daaaa3aad made deadzones configurable 2013-10-28 16:43:42 +05:30
Siddharth
ec0e0d7047 implemented full tilt based D-pad controls 2013-10-27 23:28:47 +05:30