Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <list>
#include <lin_time.h>
#include "vegastrike.h"
#include "vs_globals.h"
#include "in_handler.h"
#include "in_joystick.h"
#include "config_xml.h"
#include "in_mouse.h"
#include "gldrv/gl_include.h"
#include "options.h"
Go to the source code of this file.
Classes | |
struct | mouseData |
Macros | |
#define | NO_SDL_JOYSTICK |
Functions | |
void | modifyDeadZone (JoyStick *j) |
void | modifyExponent (JoyStick *j) |
void | JoyStickToggleDisable () |
void | JoyStickToggleKey (const KBData &key, KBSTATE a) |
void | myGlutJoystickCallback (unsigned int buttonmask, int x, int y, int z) |
int | JoystickPollingRate () |
void | InitJoystick () |
void | DeInitJoystick () |
void | GetMouseXY (int &mousex, int &mousey) |
Variables | |
vs_options | game_options |
static int | maxx = 1 |
static int | minx = -1 |
static int | maxy = 1 |
static int | miny = -1 |
static int | maxz = 1 |
static int | minz = -1 |
JoyStick * | joystick [MAX_JOYSTICKS] |
int | num_joysticks = 0 |
static bool | JoyStickToggle = true |
#define NO_SDL_JOYSTICK |
Definition at line 38 of file in_joystick.cpp.
void DeInitJoystick | ( | ) |
Definition at line 172 of file in_joystick.cpp.
References i, and MAX_JOYSTICKS.
Referenced by DeInitInput().
void InitJoystick | ( | ) |
Definition at line 129 of file in_joystick.cpp.
References vs_options::force_use_of_joystick, h, i, j, JoystickPollingRate(), MAX_DIGITAL_HATSWITCHES, MAX_DIGITAL_VALUES, MAX_HATSWITCHES, MAX_JOYSTICKS, MAX_VALUES, myGlutJoystickCallback(), num_joysticks, NUMJBUTTONS, UnbindDigitalHatswitchKey(), UnbindHatswitchKey(), UnbindJoyKey(), and v.
Referenced by InitInput().
int JoystickPollingRate | ( | ) |
Definition at line 125 of file in_joystick.cpp.
References vs_options::polling_rate.
Referenced by JoyStick::GetJoyStick(), and InitJoystick().
void JoyStickToggleDisable | ( | ) |
Definition at line 80 of file in_joystick.cpp.
References JoyStickToggle.
Referenced by FlyByKeyboard::DownKey(), FlyByKeyboard::LeftKey(), FlyByKeyboard::RightKey(), and FlyByKeyboard::UpKey().
Definition at line 84 of file in_joystick.cpp.
References JoyStickToggle, and PRESS.
Referenced by initGlobalCommandMap().
void modifyDeadZone | ( | JoyStick * | j) |
Definition at line 56 of file in_joystick.cpp.
References a, JoyStick::deadzone, JoyStick::joy_axis, and JoyStick::nr_of_axes.
Referenced by JoyStick::GetJoyStick(), and myGlutJoystickCallback().
void modifyExponent | ( | JoyStick * | j) |
Definition at line 69 of file in_joystick.cpp.
References a, JoyStick::joy_axis, vs_options::joystick_exponent, and JoyStick::nr_of_axes.
Referenced by JoyStick::GetJoyStick(), and myGlutJoystickCallback().
Definition at line 89 of file in_joystick.cpp.
References float, i, JoyStick::joy_axis, JoyStick::joy_buttons, JoyStickToggle, MAX_AXES, maxx, maxy, maxz, minx, miny, minz, modifyDeadZone(), modifyExponent(), x, and y.
Referenced by InitJoystick().
vs_options game_options |
JoyStick * joystick |
Definition at line 54 of file in_joystick.cpp.
Referenced by DealWithWarp(), FlyByJoystick::Execute(), FlyByJoystick::FlyByJoystick(), GenBindJoyKey(), GenUnbindJoyKey(), ProcessInput(), and ProcessJoystick().
|
static |
Definition at line 79 of file in_joystick.cpp.
Referenced by JoyStickToggleDisable(), JoyStickToggleKey(), and myGlutJoystickCallback().
|
static |
Definition at line 47 of file in_joystick.cpp.
Referenced by Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Get(), UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Get(), myGlutJoystickCallback(), Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Put(), UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Put(), Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Remove(), and UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Remove().
|
static |
Definition at line 49 of file in_joystick.cpp.
Referenced by Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Get(), UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Get(), myGlutJoystickCallback(), Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Put(), UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Put(), Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Remove(), and UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Remove().
|
static |
Definition at line 51 of file in_joystick.cpp.
Referenced by Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Get(), UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Get(), myGlutJoystickCallback(), Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Put(), UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Put(), Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Remove(), and UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Remove().
|
static |
Definition at line 48 of file in_joystick.cpp.
Referenced by myGlutJoystickCallback(), Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Put(), and UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Put().
|
static |
Definition at line 50 of file in_joystick.cpp.
Referenced by BoxTest(), myGlutJoystickCallback(), Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Put(), and UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Put().
|
static |
Definition at line 52 of file in_joystick.cpp.
Referenced by myGlutJoystickCallback(), Hashtable3d< T, COLLIDETABLESIZE, COLLIDETABLEACCURACY, HUGEOBJECT >::Put(), and UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::Put().
int num_joysticks = 0 |
Definition at line 55 of file in_joystick.cpp.
Referenced by InitJoystick(), and JoyStick::JoyStick().