FS2_Open
Open source remastering of the Freespace 2 engine
joy-unix.cpp File Reference
#include "globalincs/pstypes.h"
#include "io/joy.h"
#include "math/fix.h"
#include "io/key.h"
#include "io/timer.h"
#include "osapi/osregistry.h"
#include "io/joy_ff.h"
#include "osapi/osapi.h"
#include "SDL.h"

Go to the source code of this file.

Classes

struct  joy_button_info
 

Typedefs

typedef struct joy_button_info joy_button_info
 

Functions

void joy_close ()
 
void joy_get_caps (int max)
 
int joy_down (int btn)
 
int joy_down_count (int btn, int reset_count)
 
float joy_down_time (int btn)
 
void joy_flush ()
 
int joy_get_unscaled_reading (int raw, int axn)
 
int joy_get_scaled_reading (int raw, int axn)
 
int joy_get_pos (int *x, int *y, int *z, int *rx)
 
void joy_process (int time_delta)
 
void joy_set_button_state (int button, int state)
 
void joy_set_hat_state (int position)
 
void joy_poll ()
 
int joy_init ()
 
void joy_set_cen ()
 
int joystick_read_raw_axis (int num_axes, int *axis)
 
void joy_ff_adjust_handling (int speed)
 
void joy_ff_afterburn_off ()
 
void joy_ff_afterburn_on ()
 
void joy_ff_deathroll ()
 
void joy_ff_docked ()
 
void joy_ff_explode ()
 
void joy_ff_fly_by (int mag)
 
void joy_ff_mission_init (vec3d v)
 
void joy_ff_play_dir_effect (float x, float y)
 
void joy_ff_play_primary_shoot (int gain)
 
void joy_ff_play_reload_effect ()
 
void joy_ff_play_secondary_shoot (int gain)
 
void joy_ff_play_vector_effect (vec3d *v, float scaler)
 
void joy_ff_stop_effects ()
 

Variables

int Dead_zone_size = 10
 
int Cur_joystick = -1
 
int Joy_sensitivity = 9
 
int joy_pollrate = 1000 / 18
 
Joy_info joystick
 
int JOYSTICKID1 = 0
 
joy_button_info joy_buttons [JOY_TOTAL_BUTTONS]
 

Typedef Documentation

Function Documentation

void joy_close ( )

Definition at line 53 of file joy-unix.cpp.

int joy_down ( int  btn)

Definition at line 93 of file joy-unix.cpp.

int joy_down_count ( int  btn,
int  reset_count 
)

Definition at line 105 of file joy-unix.cpp.

float joy_down_time ( int  btn)

Definition at line 120 of file joy-unix.cpp.

void joy_ff_adjust_handling ( int  speed)

Definition at line 575 of file joy-unix.cpp.

void joy_ff_afterburn_off ( )

Definition at line 580 of file joy-unix.cpp.

void joy_ff_afterburn_on ( )

Definition at line 585 of file joy-unix.cpp.

void joy_ff_deathroll ( )

Definition at line 590 of file joy-unix.cpp.

void joy_ff_docked ( )

Definition at line 595 of file joy-unix.cpp.

void joy_ff_explode ( )

Definition at line 600 of file joy-unix.cpp.

void joy_ff_fly_by ( int  mag)

Definition at line 605 of file joy-unix.cpp.

void joy_ff_mission_init ( vec3d  v)

Definition at line 610 of file joy-unix.cpp.

void joy_ff_play_dir_effect ( float  x,
float  y 
)

Definition at line 615 of file joy-unix.cpp.

void joy_ff_play_primary_shoot ( int  gain)

Definition at line 620 of file joy-unix.cpp.

void joy_ff_play_reload_effect ( )

Definition at line 625 of file joy-unix.cpp.

void joy_ff_play_secondary_shoot ( int  gain)

Definition at line 630 of file joy-unix.cpp.

void joy_ff_play_vector_effect ( vec3d v,
float  scaler 
)

Definition at line 635 of file joy-unix.cpp.

void joy_ff_stop_effects ( )

Definition at line 640 of file joy-unix.cpp.

void joy_flush ( )

Definition at line 152 of file joy-unix.cpp.

void joy_get_caps ( int  max)

Definition at line 69 of file joy-unix.cpp.

int joy_get_pos ( int x,
int y,
int z,
int rx 
)

Definition at line 267 of file joy-unix.cpp.

int joy_get_scaled_reading ( int  raw,
int  axn 
)

Definition at line 204 of file joy-unix.cpp.

int joy_get_unscaled_reading ( int  raw,
int  axn 
)

Definition at line 171 of file joy-unix.cpp.

int joy_init ( )

Definition at line 466 of file joy-unix.cpp.

void joy_poll ( )

Definition at line 446 of file joy-unix.cpp.

void joy_process ( int  time_delta)

Definition at line 299 of file joy-unix.cpp.

void joy_set_button_state ( int  button,
int  state 
)

Definition at line 365 of file joy-unix.cpp.

void joy_set_cen ( )

Definition at line 544 of file joy-unix.cpp.

void joy_set_hat_state ( int  position)

Definition at line 394 of file joy-unix.cpp.

int joystick_read_raw_axis ( int  num_axes,
int axis 
)

Definition at line 549 of file joy-unix.cpp.

Variable Documentation

int Cur_joystick = -1

Definition at line 28 of file joy-unix.cpp.

int Dead_zone_size = 10

Definition at line 27 of file joy-unix.cpp.

Definition at line 50 of file joy-unix.cpp.

int joy_pollrate = 1000 / 18

Definition at line 31 of file joy-unix.cpp.

int Joy_sensitivity = 9

Definition at line 29 of file joy-unix.cpp.

Joy_info joystick

Definition at line 45 of file joy-unix.cpp.

int JOYSTICKID1 = 0

Definition at line 47 of file joy-unix.cpp.