79 Commits

Author SHA1 Message Date
neil4
b98c53ddb7
Improve haptic feedback for input overlays (#14517)
Repurpose vibrate_on_keypress to enable device's standard keypress feedback on overlay key/button state changes

- Add keypress_vibrate function ptr to input_driver_t (only implemented on Android for now)
- (Android) Remove APP_CMD_VIBRATE_KEYPRESS
- (Android) Add doHapticFeedback, called directly to avoid latency
2022-10-16 09:58:09 +02:00
Francisco Javier Trujillo Mata
6366fcf8e3 [ORBIS] Remove legacy implementation and compile with Werror 2022-05-21 17:10:35 +02:00
twinaphex
619398bbe4 Backport parts of 73c0760236 2021-11-09 23:12:57 +01:00
sonninnos
d78f321d33 Prevent duplicate key events with hotkeys + keyboard device type 2021-01-30 11:41:44 +02:00
twinaphex
b1af12efc9 Add more PSL1GHT ifdefs 2020-12-27 18:56:00 +01:00
twinaphex
870707dbe8 Remove obsolete __CELLOS_LV2__ references - use PSL1GHT instead 2020-12-19 15:32:26 +01:00
David Guillen Fandos
bf48757a2e Add support for 64 buttons in udev gamepads
It seems only 16 were only really supported anyway due to the
usage of BITS_COPY16_PTR (which only copies 16 bit states)?
2020-11-18 19:29:46 +01:00
twinaphex
f35010e1ae Cleanups 2020-08-02 10:28:23 +02:00
Francisco Javier Trujillo Mata
8334be07bf Fix issue with the PS2 and PRI_SIZET 2020-07-21 10:17:16 +02:00
jdgleaver
321ede2256 (X11/udev) Input fixes 2020-06-12 14:12:22 +01:00
Vladimir Serbinenko
2fb7ba22e5 PSL1GHT port
Working:

* packaging
* running cores
* switching cores
* gamepad including axis
* rgui
* audio
* video

Not working:

* OSD
* menus other than rgui
* shaders
* Graphical acceleration
* Proper signing
* ODE build
* rumble
* keyboard
* mouse

Not tested:

* A lot
2020-03-30 05:39:22 +02:00
twinaphex
cd9ca691ca (libretro-common) Update copyright 2020-01-31 15:43:42 +01:00
Francisco Javier Trujillo Mata
adf2743464 Implement CDFS and custom file descriptor support 2019-03-15 20:19:14 +01:00
Hugo Hromic
7cde32a2b3 libretro-common: fix PRI_SIZET not being set in PS2
* use `lu` for PS2 builds
2019-02-07 23:23:31 +00:00
Hugo Hromic
e2b620ae05 libretro-common: improve PRI_SIZET for non-windows platforms
In non-windows platfoms, the `size_t` type may not necessarily use
the `%lu` format specification. For example in 32 bits platforms
instead it needs to be `%u`. Therefore, for non-windows platforms,
it is better to define PRI_SIZET more precisely.

Silences these types of warnings in 32 bits non-windows platforms:

    libretro-common/file/config_file.c: In function ‘config_get_size_t’:
    libretro-common/file/config_file.c:694:32: warning: format ‘%lu’ expects
    argument of type ‘long unsigned int *’, but argument 3 has type
    ‘size_t * {aka unsigned int *}’ [-Wformat=]
           if (sscanf(entry->value, "%" PRI_SIZET, &val) == 1)
                                    ^~~

Discussed in #8191
2019-02-07 16:25:48 +00:00
psxdev
ae0c4bde1e [ORBIS] Limit path legth to avoid calloc issues 2019-01-03 21:23:44 +01:00
orbea
14905e33e1 Fix more gcc -Wformat= warnings with C89_BUILD.
The "z" modifier was introduced in c99, but using "l" instead
seems to work.

setting_list.c: In function ‘setting_get_string_representation_size’:
setting_list.c:175:24: warning: ISO C90 does not support the ‘z’ gnu_printf length modifier [-Wformat=]
       snprintf(s, len, "%" PRI_SIZET,
                        ^~~
setting_list.c: In function ‘setting_get_string_representation_size_in_mb’:
setting_list.c:183:24: warning: ISO C90 does not support the ‘z’ gnu_printf length modifier [-Wformat=]
       snprintf(s, len, "%" PRI_SIZET,
                        ^~~
setting_list.c: In function ‘setting_set_with_string_representation’:
setting_list.c:508:24: warning: ISO C90 does not support the ‘z’ gnu_scanf length modifier [-Wformat=]
          sscanf(value, "%" PRI_SIZET, setting->value.target.sizet);
                        ^~~

libretro-common/file/config_file.c: In function ‘config_get_size_t’:
libretro-common/file/config_file.c:692:32: warning: ISO C90 does not support the ‘z’ gnu_scanf length modifier [-Wformat=]
       if (sscanf(entry->value, "%" PRI_SIZET, &val) == 1
2018-12-16 19:59:50 -08:00
Francisco Javier Trujillo Mata
0880bd00b0 PS2 is compiling with null drivers 2018-11-09 22:40:50 +01:00
twinaphex
d6c5c7f208 Pre-MSVC 2013 did not support PRIu32, add workaround 2018-07-14 05:29:17 +02:00
Sven
83da70586e implement a way to set rewind_buffer_size via the UI 2018-07-13 16:12:09 -04:00
twinaphex
768ebbfdb5 Merge commit 'ce9ce1d35387ef8144e53bf071396fa075bfb6c5' as 'libretro-common' 2018-05-12 17:56:34 +02:00
twinaphex
0548349991 Remove libretro-common 2018-05-12 17:56:14 +02:00
twinaphex
be7eb4de1c Update libretro-common 2018-04-16 08:57:17 +02:00
twinaphex
a82bb0ec94 Create special type input_bits_t 2018-04-08 20:21:12 +02:00
radius
0ed9f05571 remap-redux part2:
- remapping analogs to buttons works 100%
- remapping analogs to other analogs still messed up for some reason
- need to reset input of the original axis in input_driver.c still
2018-04-08 12:13:49 -05:00
radius
692c8683b2 subsystem part 2: add missing define, fix typo 2018-02-12 02:39:24 -05:00
twinaphex
259b077eef (PS3) Set PATH_MAX_LENGTH to CELL_FS_MAX_FS_PATH_LENGTH 2017-12-20 15:45:11 +01:00
twinaphex
7cda1aaab9 Set PATH_MAX_LENGTH to 512 for PS3 2017-12-20 15:39:01 +01:00
David Walters
adffa5fc4c Fixes for overlay buttons 2017-12-17 12:36:18 +00:00
gblues
6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex
69295c2179 Fix BIT_GET 2017-12-05 16:20:52 +01:00
twinaphex
b432fb4668 Bugfix 2017-12-05 13:21:29 +01:00
twinaphex
53efad05c6 Cleanups 2017-12-05 13:15:15 +01:00
Alcaro
332aee5b0f
Dehardcode some sizes (#5856) 2017-12-05 13:03:34 +01:00
twinaphex
53ce29ca31 Cleanups 2017-12-05 12:49:59 +01:00
twinaphex
6c09661a64 Move defines to retro_miscellaneous.h 2017-12-05 10:42:37 +01:00
twinaphex
31cc6a8dd7 Create 256 bit macros 2017-12-05 09:51:58 +01:00
Alcaro
0691c9e0d3
Let's not duplicate those macros more than needed 2017-12-05 08:55:42 +01:00
twinaphex
3ccce249ea Fixes hotkey issues with MSVC 2017-12-05 08:50:24 +01:00
Alcaro
0215648a83
Make booleans boolean again
#5856

why do both BIT_ and BIT128_ exist
2017-12-05 08:34:29 +01:00
Alcaro
84691c7b9b
Update retro_miscellaneous.h 2017-12-04 19:15:35 +01:00
twinaphex
63d2e543af Don't try to redefine WIN32_LEAN_AND_MEAN if already defined 2017-06-28 06:44:17 +02:00
twinaphex
17d699c75b Cleanups 2017-06-28 06:26:56 +02:00
twinaphex
b11620e1eb Add retro_timers.h/retro_math.h 2017-06-28 04:41:38 +02:00
twinaphex
50b07ad8c4 Move retro_le to archive_file_zlib.c 2017-06-28 04:20:52 +02:00
twinaphex
80e2911bec Cleanups 2017-06-11 00:23:19 +02:00
twinaphex
21ddee6690 Don't define M_PI if we are using MSVC and USE_MATH_DEFINES is
already defined
2017-02-21 20:14:19 +01:00
aliaspider
021b510452 (WiiU) refactors/cleanups. 2017-01-23 16:14:05 +01:00
twinaphex
64bb848daf Update headers (pt. 2 - libretro-common) 2017-01-22 13:58:20 +01:00
Brad Parker
1d3e1a6962 DOS/DJGPP buildfix 2017-01-20 18:23:45 -05:00