Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: input.h File Reference

# input.h File Reference

`#include "tnl.h"`

## Namespaces

namespace | Zap

## Enumerations

enum | Zap::ControllerTypeType { Zap::LogitechWingman, Zap::LogitechDualAction, Zap::SaitekDualAnalog, Zap::PS2DualShock,
Zap::XBoxController,
Zap::XBoxControllerOnXBox,
Zap::ControllerTypeCount
}
enum | Zap::ButtonInfo { Zap::MaxJoystickAxes = 12, Zap::MaxJoystickButtons = 14, Zap::ControllerButton1 = 1 << 0, Zap::ControllerButton2 = 1 << 1,
Zap::ControllerButton3 = 1 << 2,
Zap::ControllerButton4 = 1 << 3,
Zap::ControllerButton5 = 1 << 4,
Zap::ControllerButton6 = 1 << 5,
Zap::ControllerButtonLeftTrigger = 1 << 6,
Zap::ControllerButtonRightTrigger = 1 << 7,
Zap::ControllerGameButtonCount = 8,
Zap::ControllerButtonStart = 1 << 8,
Zap::ControllerButtonBack = 1 << 9,
Zap::ControllerButtonDPadUp = 1 << 10,
Zap::ControllerButtonDPadDown = 1 << 11,
Zap::ControllerButtonDPadLeft = 1 << 12,
Zap::ControllerButtonDPadRight = 1 << 13
}

## Functions

void | Zap::getModifierState (bool &shiftDown, bool &controlDown, bool &altDown)
void | Zap::InitJoystick ()
const char * | Zap::GetJoystickName ()
S32 | Zap::autodetectJoystickType ()
void | Zap::ShutdownJoystick ()
bool | Zap::ReadJoystick (F32 axes[MaxJoystickAxes], U32 &buttonMask, U32 &hatMask)