Flyinghead
39d68ec7fa
sdl: don't reset haptic gain to 0 on exit
...
Issue #1963
2025-06-01 10:52:29 +02:00
Flyinghead
a06791780d
Merge remote-tracking branch 'origin/dev'
2024-12-29 10:59:49 +01:00
Flyinghead
9038ef6d8a
sdl: disable rumble when rumble power is set to 0
...
Issue #1766
Issue #1783
2024-12-26 16:31:23 +01:00
Flyinghead
b9fdd5070b
dreamconn: detect dreamconn+ with VID/PID. Send maple data as text.
...
Create DreamConn gamepad when detected.
Send/receive maple data in ascii dump form.
Simplify maple device creation.
Issue #1305
2024-12-20 20:02:58 +01:00
Flyinghead
a99aa5217b
sdl: don't run null haptic effects. Stop effects instead
...
Tentative fix for Issue #1766
2024-12-07 18:57:40 +01:00
Flyinghead
719fd70860
sdl: always open haptic interface. use default rumble except for wheels
...
Always open joysticks haptic interface if available and create FFB
effects if supported.
Use default joystick rumble except for racing wheels (sine effect)
Revert 4e3d1caf3f
2024-06-23 16:06:50 +02:00
Flyinghead
4e3d1caf3f
input: temporary logging for failed haptic effects
2024-06-04 13:27:26 +02:00
Flyinghead
adeba60ba9
input: ffb support for arcade games. rumble support (f355, 18wheeler)
...
SDL force feedback for racing wheels.
Support for jvs ffb (f355, 18wheeler), atomiswave (maxspeed, ftspeed)
and midi ffb (initd, clubk, kingrt66, sgdrvsim).
Simple haptic rumble for f355 and 18wheeler.
2024-06-01 11:03:14 +02:00
Flyinghead
06a6e26588
get rid of os_GetSeconds()
...
replace it with std::chrono-based getTimeMs()
2024-04-11 15:25:25 +02:00
Flyinghead
9e916ca1c9
minor input and lua fixes
...
Make macOS keyboard class with haptic code
Call SDL_JoystickSetPlayerIndex using maple port
Add Network event for LUA
Set proper controller unique id on iOS
rumblePower wasn't copied over new mappings.
2024-04-10 17:24:47 +02:00
Flyinghead
713739bbc7
sdl: support multiple mice when allowed by the platform
2024-02-24 21:33:40 +01:00
Flyinghead
19bb4a6e5d
switch: implement rumble with native API
2024-01-20 19:23:09 +01:00
scribam
e057370e97
core: add missing pragma once to header files
2023-12-17 11:12:20 +01:00
Bowen Cui
c0de126b2b
Add option to set deadzone for analog sticks
2023-10-30 05:21:36 -04:00
vkedwardli
b564b0bf91
Increase L2+ / R2+ trigger sensitivity for digital buttons ( #1190 )
2023-09-14 09:08:58 +02:00
Flyinghead
885a0508c0
Merge remote-tracking branch 'origin/master' into dev
...
# Conflicts:
# core/hw/aica/sgc_if.cpp
# core/hw/naomi/naomi.cpp
# core/hw/sh4/dyna/driver.cpp
2023-02-28 20:02:23 +01:00
Flyinghead
b86df7217c
sdl: don't add a joystick if its name can't be retrieved
...
Otherwise it crashes later on during SDL_JoystickClose
Fixes MINIDUMP-9K, MINIDUMP-B4
2023-02-27 17:59:48 +01:00
Flyinghead
a156edbd73
Merge remote-tracking branch 'origin/master' into dev
2023-02-19 14:10:37 +01:00
scribam
d8137a967c
C++17 ( #926 )
...
* cmake: use c++17
* Use std::size
* Use std::make_unique
* Use std::clamp
* Use structured binding
* Use [[fallthrough]]
* Use enable_if_t/is_enum_v/is_integral_v/is_same_v
* Use if constexpr
* Use try_emplace
* Use auto for iterators
* Use inline variables
2023-02-18 13:24:34 +01:00
Flyinghead
a045c52146
sdl: handle joystick and gamepad api errors to avoid crashes
...
Fixes MINIDUMP-7K
2023-02-06 15:20:21 +01:00
Flyinghead
e0d87eb093
Merge remote-tracking branch 'origin/master' into dev
...
# Conflicts:
# core/rend/gui.cpp
2022-08-22 13:09:56 +02:00
Flyinghead
55600c40a9
sdl: use exp scale for rumble power
...
Better sensitivity for low power values.
Issue #707
2022-07-28 10:47:42 +02:00
Flyinghead
0840da1bd5
sdl: fix inverted axis detection
2022-07-08 20:36:20 +02:00
Flyinghead
971d47eb42
sdl: SDL_QuitSubSystem() on exit
...
Tentative fix for issue #654
2022-05-31 17:42:42 +02:00
Flyinghead
a710674cd4
gui: init once. reset ui driver when needed. android 120+ Hz support
...
ImGui is now initialized once at startup and shutdown before
terminating. graphics initialization is independent.
Move more imgui stuff into imgui drivers.
switch: set scaling on external screen to 1.4, same as xbox
UI scaling refactoring.
2022-04-13 18:06:19 +02:00
Flyinghead
6c38295d62
new naomi network protocol. vblank event. initd rumble support
...
new vblank event, used by cheats, lua and naomi net
new udp net protocol for naomi. rx/tx on vblank on emu thread.
input: rumble power configurable (Issue #158 )
ui: rumble intensity slider, enable/disable upnp
aica: hook to consume midi out
decode midi out to simulate rumble for initd
upnp can now be disabled
2022-03-27 15:23:21 +02:00
Julien Reichardt
4f638f6d77
Use service button instead of coin
...
The service button can also be used to add coins.
2022-01-11 14:09:54 +01:00
Julien Reichardt
80d78705b0
Add default coin mapping
2022-01-10 12:13:14 +01:00
scribam
746b3c5a54
sdl: fix joystick rumble
2022-01-06 08:59:39 +01:00
Flyinghead
ab45b5ec8a
ggpo: keyboard/mouse games support. Fix chat when keyboard disabled
...
ggpo: support for arcade games using keyboard (totd, luptype) and
mouse/rotary encoders (waiwai drive)
Chat and UI now usable when the keyboard is not set to a maple port.
2021-10-19 16:56:46 +02:00
Flyinghead
1dc22ec76c
sdl: null init sdl_controller
2021-09-26 22:02:21 +02:00
Flyinghead
1725dbfa98
input: fix arcade mode for on-screen gamepads.
...
Use same layout as gamepad arcade for on-screen gamepads (ABXYRL)
map RT and LT to buttons 5 and 6 in arcade
android: Fix non-working fast-forward button
Use maple port in lastAxisValue state
naomi: use default alienfnt buttons: 1-4
2021-09-21 15:56:01 +02:00
flyinghead
5b7d189058
sdl: fix hat button names
2021-09-19 22:35:23 +02:00
Flyinghead
65956dbc8d
input: merge buttons and axes
...
Default mappings for arcade and console
Default mappings for arcade stick/hitbox
Proper handling of inverted axes
ggpo: automatic analog setting for arcade games
2021-09-19 18:27:21 +02:00
Flyinghead
b40328e621
input: don't change mapper if file not found. sdl: fix default bindings
2021-07-05 09:59:46 +02:00
Flyinghead
7f49accc22
Merge remote-tracking branch 'origin/master' into fh/directx
2021-06-07 20:53:31 +02:00
scribam
d6545b253b
Misc cleanup
2021-06-06 11:15:06 +02:00
flyinghead
5f5d31730c
sdl: hide mouse in fullscreen. fix & refactor mouse devices
...
support rawinput mouse wheel
simplify mapping load
2021-05-19 18:13:52 +02:00
flyinghead
b90cdf9588
RawInput driver. Multiple keyboards support
...
Merge Keyboard and KbGamepad
Always use system mouse for UI
Issue #138
Fix DX9 when not using SDL
2021-04-29 18:58:04 +02:00
flyinghead
ed7bd06f96
win32: multiple mice support. Patch and build SDL
2021-01-21 21:00:46 +01:00
Flyinghead
d1fbbac0ae
sdl: use gamecontroller api for initial btn/axis binding
2020-12-07 22:18:23 +01:00
Flyinghead
3e3fa08430
input: use btn/axes names in ui. fix mouse btn mapping
...
Use button and axis names in mapping UI
Mouse button remapping was impossible
x11: use same config names for window size as sdl/win
2020-11-20 22:10:14 +01:00
Flyinghead
a9fc78b88e
SDL: don't use guid as unique id as it's not unique to a device instance
...
Issue #74
2020-04-16 16:17:30 +02:00
Flyinghead
0c2e95185c
support for right analog stick. Fix gunsur2 inputs
2020-03-20 16:57:50 +01:00
Flyinghead
4e73af0f94
Mem leaks in input mapping/jvs/x11. Fix crash when latin-1 char is input
...
Fix warnings
2020-03-12 16:09:05 +01:00
Flyinghead
ae4f378747
Add fast-forward mode
...
Fix buttons.png not being created if not first run
2019-09-27 14:15:29 +02:00
Flyinghead
74a96897cc
OSX: use SLD2 for gamepads
2019-08-14 09:20:24 +02:00
Flyinghead
2c8094f987
renderer,sdl: use new logging
2019-07-01 17:41:15 +02:00
Flyinghead
bd30752b86
Use auto& to avoid copy when iterating. Inline mmu_Read/WriteMemNoEx
2019-06-08 13:04:35 +02:00
hissingshark
b0b63d4894
Fix typo induced build error
2019-05-16 16:05:47 +01:00