-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Win32: Add Rumble Support #1315
Conversation
de6e4ab
to
3ba4ae0
Compare
…amepad, since the current use case is vibration support
2f7c52e
to
69959d6
Compare
Source/input/PH_GenericInput.cpp
Outdated
@@ -2,7 +2,8 @@ | |||
|
|||
void CPH_GenericInput::Update(uint8* ram) | |||
{ | |||
for(auto* listener : m_listeners) | |||
std::map<unsigned int, std::pair<uint8, uint8>> vibrationMap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::map
is probably a bit overkill for this. We should use std::array<std::pair<uint8, uint8>, MAX_PADS>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated, I've also added code to choose max value, just incase we implement vibration, in the other interfaces
… max value for motors
Fixes one crash that can occur when quitting the app.
Thanks for this! |
Requries: jpd002/Play--Framework#41
Add basic Rumble/Vibration Support.
Just to note,
this will allow all platforms to compile, until we add support for the reset (there is also some derviative class that wont support those calls, aka QtProvider (aka keyboard) will never need to implement them)
CMotorBinding
isn't a deriviate ofCBinding
(as the name might suggest)