GreemDev-Ryujinx/src/Ryujinx
Exhigh 56c5dbe557
Fix Cursor States On Windows (#6725)
* [Ava]: Fix Cursor States On Windows

It's been sometime since the last PR #5415 was made and last time i was waiting for Ava 11 to be merged before re-writing the code and along the way forgot about the PR.

Anyway this PR supersedes both #5288 and #5415, and fixes issue: #5136

* Now, the bounds for which the cursor should be detected in renderer should be accurate to any scaling / resolution, taking into account the status and the menu bar. ( This issue was partially resolved by #6450 )

* Reduced the number of times the cursor updates from per frame update to updating only when the cursor state needs to be changed.

* Fixed the issue wherein you weren't able to resize the window, because of the cursor passthrough which caused the cursor to reset from the reset icon or flicker.

* Fixed the issue caused by #6450 which caused the cursor to disappear over the submenus while cursor was set to always hide.

* Changed the cursor state to not disappear while the game is being loaded. ( Needs Feedback ).

* Removed an unused library import.

* PR feedback

* Fix excessive line breaks and whitespaces and other feedback
* Add a check before calculating cursor idle time, such that it calculates only while the cursor mode is OnIdle.

* PR Feedback

* Rework the cursor state check code block

Co-Authored-By: gdkchan <5624669+gdkchan@users.noreply.github.com>

* PR Feedback

* A simpler version of the previous implementation.

Co-Authored-By: gdkchan <5624669+gdkchan@users.noreply.github.com>

* PR Feedback

* PR Feedback

---------

Co-authored-by: gdkchan <5624669+gdkchan@users.noreply.github.com>
2024-04-28 20:21:08 -03:00
..
Assets Ava UI: Input Menu Refactor (#5826) 2024-04-17 18:52:12 -03:00
Common New Crowdin updates (#6541) 2024-03-20 21:07:27 -03:00
Input infra: Make Avalonia the default UI (#6375) 2024-03-02 12:51:05 +01:00
Modules/Updater infra: Fix updater for old Ava users (#6441) 2024-03-13 23:26:35 +01:00
UI Fix Cursor States On Windows (#6725) 2024-04-28 20:21:08 -03:00
App.axaml infra: Make Avalonia the default UI (#6375) 2024-03-02 12:51:05 +01:00
App.axaml.cs infra: Make Avalonia the default UI (#6375) 2024-03-02 12:51:05 +01:00
app.manifest infra: Make Avalonia the default UI (#6375) 2024-03-02 12:51:05 +01:00
AppHost.cs Fix Cursor States On Windows (#6725) 2024-04-28 20:21:08 -03:00
Program.cs Disable CLI setting persistence for HW-accelerated GUI. (#6620) 2024-04-07 20:58:05 -03:00
Ryujinx.csproj New Crowdin updates (#6541) 2024-03-20 21:07:27 -03:00
Ryujinx.ico Move solution and projects to src 2023-04-27 23:51:14 +02:00