Lines Matching refs:stick
48 BJoystick *stick; member
126 BJoystick *stick; in HAIKU_JoystickOpen() local
136 stick = new BJoystick; in HAIKU_JoystickOpen()
137 joystick->hwdata->stick = stick; in HAIKU_JoystickOpen()
140 if (stick->Open(SDL_joyport[device_index]) == B_ERROR) { in HAIKU_JoystickOpen()
146 stick->EnableCalibration(); in HAIKU_JoystickOpen()
149 joystick->nbuttons = stick->CountButtons(); in HAIKU_JoystickOpen()
150 joystick->naxes = stick->CountAxes(); in HAIKU_JoystickOpen()
151 joystick->nhats = stick->CountHats(); in HAIKU_JoystickOpen()
185 BJoystick *stick; in HAIKU_JoystickUpdate() local
192 stick = joystick->hwdata->stick; in HAIKU_JoystickUpdate()
197 stick->Update(); in HAIKU_JoystickUpdate()
198 stick->GetAxisValues(axes); in HAIKU_JoystickUpdate()
199 stick->GetHatValues(hats); in HAIKU_JoystickUpdate()
200 buttons = stick->ButtonValues(); in HAIKU_JoystickUpdate()
223 joystick->hwdata->stick->Close(); in HAIKU_JoystickClose()
224 delete joystick->hwdata->stick; in HAIKU_JoystickClose()