Init rumble to an invalid value, so that the first rumble command gets never ignored

This commit is contained in:
Ingo Ruhnke 2009-02-04 14:36:36 +01:00
parent dfa03c6114
commit fdadf215b7

View file

@ -52,8 +52,8 @@ struct FirestormMsg
} __attribute__((__packed__));
FirestormDualController::FirestormDualController(struct usb_device* dev)
: left_rumble(0),
right_rumble(0)
: left_rumble(-1),
right_rumble(-1)
{
handle = usb_open(dev);
if (!handle)