-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InputSource, replaces #558 #749
Conversation
How crazy would it be to make the register_keydown_event and other functions/lambdas just compile into nothing rather than wrapping every use of them in ifdefs? |
I agree. |
Although this could be tricky with functions that use a type that is also #ifdef'd out, like Note that |
Can you just ifdef the members? |
I don't see how that would help here. |
Won't the only things using the members be the ifdef'd functions? Idk, I haven't looked closely at it. |
Members and functions are currently fully ifdef'd out. |
The discussion above has been resolved, the current status is now:
|
I tested the latest build from here with my mods, mainly with my StackManage mod, which utilize multiple |
Input Source: add windows platform code
Store ModifierKeys in a uint32_t
…t; ModifierKeys ops
Input Source: Input Handler in UE4SS * Use HAS_INPUT macro with --ue4ssInput option * Init InputSource System * Set Input Source according to the settings * Use thread safe get_events_safe callback Input Source: Apply HAS_INPUT macro Input Source: Use safe getter for input event
Various fixes, probably from broken cherry-pick Input: clang-format
Co-authored-by: UE4SS <[email protected]>
deps/first/Input/include/Input/Platform/Win32AsyncInputSource.hpp
Outdated
Show resolved
Hide resolved
hmm.. it looks good to me. |
Approval is pending by @narknon, and it's ready to be merged immediately after. |
If you don't mind, please manually squash the last two commits then do a normal merge. Not a huge deal though. |
Made Handler.hpp always be the correct header to include Fixed build when --ue4ssInput=n Moved back various definitions from KeyDef.hpp to Handler.hpp Replaced include-guard with #pragma once for Handler.hpp Co-authored-by: UE4SS <[email protected]>
This PR is rebased onto main.
The old one is a disaster of a PR, this one contains only the InputSource commits and is rebased onto main.
Please see #558 for details.
This PR needs testing.
Keybinds seem to work fine for me on Linux using Proton, tested with Palworld.
Someone needs to test on Windows natively.