- Joystick axes can be configured in the menu again. TODO: Config saving

and loading, XInput, allow axes to be used as buttons (for the Xbox
  controller's trigger buttons), allow the joystick to move through the
  menus, and my PS2 adapter which has no Vista x64 drivers.
  * I'm sure SDL is broken again. Don't bother reporting it, because I already know.

SVN r1680 (trunk)
This commit is contained in:
Randy Heit 2009-06-26 02:45:05 +00:00
commit 590eb5cb76
8 changed files with 543 additions and 160 deletions

View file

@ -744,6 +744,18 @@ void I_GetAxes(float axes[NUM_JOYAXIS])
}
}
void I_GetJoysticks(TArray<IJoystickConfig *> &sticks)
{
sticks.Clear();
for (int i = 0; i < NUM_JOYDEVICES; ++i)
{
if (JoyDevices[i] != NULL)
{
JoyDevices[i]->GetDevices(sticks);
}
}
}
void I_PutInClipboard (const char *str)
{
if (str == NULL || !OpenClipboard (Window))