Commit Graph

39 Commits

Author SHA1 Message Date
Henrik Rydgård
dff7f5704a Implement mousewheel vertical scroll and hover in ImGui integration 2024-11-06 22:00:11 +01:00
Herman Semenov
3c66f149d3 [Common/Core/Windows] Removed excess check pointer before delete or free() 2024-09-17 11:34:42 +02:00
Henrik Rydgård
e01ca5b057
Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Henrik Rydgård
db4993bfdc Implement full support for mouse input on Android
The smoothing algorithm changed a bit now that I centralized that logic
in a way that can work with all backends.
2023-12-10 09:52:19 +01:00
Henrik Rydgård
ef6ea1bd23 Minor cleanup 2023-09-11 11:41:29 +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
e71be8af2e Remove PollControllers from host. Break out a WindowsInputManager from WindowsHost. 2023-03-24 19:57:24 +01:00
Sergey P
91aa6ad608 merge from upstream 2023-01-26 14:50:09 +03:00
Unknown W. Brackets
9cfcbc46e6 Global: Cleanup initialization/pointer checks.
Cleaning up a lot of cases of uninitialized data, unchecked return values
for failures, and similar.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets
a7b7bf7826 Global: Set many read-only params as const.
This makes what they do and which args to use clearer, if nothing else.
2022-12-10 21:13:36 -08:00
ThirteenAG
5e5bffc808 remade into GET_AXIS/GET_VKEY apis 2022-12-05 14:46:00 +03:00
ThirteenAG
37dc8c3e49 compilation workaround 2022-12-05 02:10:27 +03:00
Henrik Rydgård
f01ba6dc84 Move NativeApp.h to Common/System, split into NativeApp.h and System.h
Buildfix
2020-10-04 11:42:16 +02:00
Henrik Rydgård
b7edf75437 Move Display.cpp/h to Common. 2020-10-04 11:42:16 +02:00
Henrik Rydgård
342ed97291 Move input utilities from native to Common/Input. 2020-10-01 09:42:32 +02:00
Henrik Rydgård
11ab77b995 Remove some TLS. 2020-09-29 15:51:51 +02:00
Silent
0b5458f759
Remove KeyboardDevice which was essentially useless
Refactor InputDevice to simplify it
2019-07-02 19:17:52 +02:00
Henrik Rydgard
6aca39722f Experiment (#9647): Wipe RawInput buffers 2017-05-04 00:29:29 +02:00
LunaMoo
5fd6d4aab6 Minor OCD fix;]. 2017-04-29 16:24:01 +02:00
LunaMoo
14e6667f3a Fix ALT key mapping. 2017-04-27 17:40:54 +02:00
LunaMoo
a9d9063680 Handle more mouse buttons(middle, 4, 5) 2017-04-27 13:54:38 +02:00
LunaMoo
26c02478af Mouse Control(Windows only for now) 2017-04-26 18:03:48 +02:00
Unknown W. Brackets
14b1dac826 Remove legacy input state usage on Windows. 2017-03-14 22:07:05 -07:00
Henrik Rydgård
440e72d250 Clean up among the logs. Remove MASTER_LOG. 2017-03-06 13:10:23 +01:00
Henrik Rydgård
8b5048be72 Fix high-DPI rendering/input on Windows 2017-01-16 20:53:41 +07:00
Henrik Rydgard
f4b1152b00 Pick some safe changes from the android gradle branch (including windows CMake fixes) 2016-12-05 16:52:03 +01:00
Henrik Rydgard
6cc7a85cde Rename WndMainWindow to MainWindow 2015-09-19 13:14:05 +02:00
Unknown W. Brackets
7aa5914a7a Allow mouse clicks only when focused.
Fixes #6486.
2015-02-28 16:01:41 -08:00
Henrik Rydgard
66e9877561 Fix #7480 where we would lose the keyboard after activating fullscreen with the mouse 2015-02-15 23:07:24 +01:00
Henrik Rydgard
01cb22f16a Windows: Add WM_CHAR input support (not used for anything yet).
Some unicode cleanup.
2014-06-29 23:30:40 +02:00
The Dax
6bedad2aa5 Enable --escape-exit for all relevant platforms. It makes PPSSPP more front-end friendly by letting escape quit the emu. 2014-04-26 01:00:45 -04:00
The Dax
b82e85f9fc Win32: Properly shutdown when using File->Exit, or when g_Config.bEscapeExitsEmulator is true. 2014-04-11 14:18:27 -04:00
The Dax
7efaadaf3c Win32: Add a command-line option to let the escape button exit the emulator. 2014-02-07 16:46:40 -05:00
Unknown W. Brackets
2bf061d05b Trigger a touch event before sending a right click.
This way we can know what they actually right clicked on.
2014-01-25 11:19:41 -08:00
Unknown W. Brackets
83eb5f05bc windows: Ignore key/mouse input while menu focused.
This prevents arrow and shortcut keys from being considered inputs to the
game or UI.
2014-01-20 00:57:20 -08:00
Unknown W. Brackets
16cdbbf0d2 windows: Skip gamepad HIDs, don't work everywhere. 2014-01-19 14:24:49 -08:00
Unknown W. Brackets
8540d819a9 windows: Stub out HID rawinput. 2014-01-19 12:40:49 -08:00
Unknown W. Brackets
0421207d8b windows: Clean up rawinput code a bit. 2014-01-19 12:16:52 -08:00
Unknown W. Brackets
8af9f62f6b windows: Move rawinput stuff into its own file. 2014-01-19 11:59:11 -08:00