dolphin/Source/Core
JosJuice d6af294a23 ControllerInterface/Android: Return whether input was handled
When Android presents an input event to an app, it wants the app to
return true or false depending on whether the app handled the event or
not. If the event wasn't handled by the app, it will be passed on to
the system, which may decide to take an action depending on what kind
of input event it is. For instance, if a B button press is passed on to
the system, it will be turned into a Back press. But if an R1 press is
passed on to the system, nothing in particular happens.

It's important that we get this return value right in Dolphin. For
instance, the user generally wouldn't want a B button press to open
the EmulationActivity menu, so B button presses usually shouldn't be
passed on to the system - but volume button presses usually should be
passed on to the system, since it would be hard to adjust the volume
otherwise. What ButtonManager did was to pass on input events that are
for a button which the user has not mapped, which I think makes sense.
But exactly how to implement that is more complicated in the new input
backend than in ButtonManager, because now we have a separation between
the input backend and the code that keeps track of the user's mappings.

What I'm going with in this commit is to treat an input as mapped if
it has been polled recently. In part I chose this because it seemed
like a simple way of implementing it that wouldn't cause too many
layering violations, but it also has two useful side effects:

1. If a controller is not being polled (e.g. GameCube controllers in
   Wii games that don't use them), its mappings will not be considered.
2. Once sensor input is implemented in the Android input backend,
   we will be able to use this "polled recently" tracking to power down
   the sensors at times when the game is using a Wii Remote reporting
   mode that doesn't include motion data. (Assuming that the sensor
   inputs only are mapped to Wii Remote motion controls, that is.)
2023-03-03 22:28:23 +01:00
..
AudioCommon WorkQueueThread: provide name and function at same time 2023-02-04 15:56:27 +13:00
Common Merge pull request #11399 from JosJuice/jit-one-stack 2023-03-03 22:27:16 +01:00
Core Merge pull request #11399 from JosJuice/jit-one-stack 2023-03-03 22:27:16 +01:00
DiscIO RiivolutionPatcher: Use capitalization of file that exists in the host file system if possible. 2023-02-28 00:56:34 +01:00
DolphinNoGUI Merge pull request #11522 from phire/KillRendererWithFire 2023-02-09 19:59:16 +13:00
DolphinQt [[unlikely]] ASSERT 2023-03-02 19:54:15 -06:00
DolphinTool Merge pull request #11522 from phire/KillRendererWithFire 2023-02-09 19:59:16 +13:00
InputCommon ControllerInterface/Android: Return whether input was handled 2023-03-03 22:28:23 +01:00
MacUpdater
UICommon Merge pull request #11608 from Dentomologist/fix_dynamicinputtextures_directory_error_logs 2023-02-27 18:07:57 +01:00
UpdaterCommon Common/FileUtil: Rename Copy() to CopyRegularFile(). 2023-02-22 11:43:58 +01:00
VideoBackends Software: Implement GetSurfaceInfo() 2023-03-02 11:08:49 -08:00
VideoCommon [[unlikely]] ASSERT 2023-03-02 19:54:15 -06:00
WinUpdater windows: prefer os version from registry 2023-01-17 01:38:00 -08:00
CMakeLists.txt
DolphinLib.ARM64.props
DolphinLib.props VideoCommon: remove HiResTexture DDS loading, update hirestexture logic to use custom texture data 2023-03-01 12:11:04 -06:00
DolphinLib.vcxproj Add Dear ImPlot Library 2022-12-22 14:32:42 -05:00
DolphinLib.vcxproj.user
DolphinLib.x64.props Move x64 DSP JIT into DolphinLib.x64.props 2023-01-06 22:42:21 -08:00