mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 05:27:58 +00:00
Win32 input device refinements and XInput support
This commit is contained in:
@@ -38,7 +38,7 @@ class DualshockPadCallback : public IDualshockPadCallback
|
||||
{
|
||||
printf("CONTROLLER DISCONNECTED\n");
|
||||
}
|
||||
void controllerUpdate(const DualshockPadState& state)
|
||||
void controllerUpdate(DualshockPad& pad, const DualshockPadState& state)
|
||||
{
|
||||
static time_t timeTotal;
|
||||
static time_t lastTime = 0;
|
||||
@@ -59,8 +59,8 @@ class DualshockPadCallback : public IDualshockPadCallback
|
||||
{
|
||||
if (timeDif >= 1) // wait 30 seconds before issuing another rumble event
|
||||
{
|
||||
ctrl->startRumble(EDualshockMotor::Left);
|
||||
ctrl->startRumble(EDualshockMotor::Right, 100);
|
||||
pad.startRumble(EDualshockMotor::Left);
|
||||
pad.startRumble(EDualshockMotor::Right, 100);
|
||||
lastTime = timeTotal;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user