FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "globalincs/pstypes.h"
Go to the source code of this file.
Classes | |
struct | config_item |
Macros | |
#define | CONTROL_CONFIG_XSTR 507 |
Typedefs | |
typedef struct config_item | config_item |
Functions | |
void | control_config_common_init () |
initialize common control config stuff - call at game startup after localization has been initialized More... | |
void | control_config_common_close () |
close common control config stuff - call at game shutdown More... | |
void | control_config_init () |
void | control_config_do_frame (float frametime) |
void | control_config_close () |
void | control_config_cancel_exit () |
void | control_config_reset_defaults (int presetnum=-1) |
int | translate_key_to_index (const char *key, bool find_override=true) |
char * | translate_key (char *key) |
char * | textify_scancode (int code) |
float | check_control_timef (int id) |
int | check_control (int id, int key=-1) |
void | control_get_axes_readings (int *h, int *p, int *b, int *ta, int *tr) |
void | control_used (int id) |
void | control_config_clear () |
void | clear_key_binding (short key) |
void | control_check_indicate () |
void | control_config_clear_used_status () |
Variables | |
int | Failed_key_index |
int | Invert_heading |
int | Invert_pitch |
int | Invert_roll |
int | Invert_thrust |
int | Disable_axis2 |
int | Disable_axis3 |
int | Axis_map_to [] |
int | Invert_axis [] |
int | Invert_axis_defaults [] |
int | Control_config_overlay_id |
config_item | Control_config [] |
Stores the keyboard configuration. More... | |
SCP_vector< config_item * > | Control_config_presets |
SCP_vector< SCP_string > | Control_config_preset_names |
char ** | Scan_code_text |
char ** | Joy_button_text |
#define CONTROL_CONFIG_XSTR 507 |
Definition at line 16 of file controlsconfig.h.
typedef struct config_item config_item |
Control configuration item type.
enum CC_type |
Control Configuration Types. Namely differ in how the control is activated
Definition at line 53 of file controlsconfig.h.
enum IoActionId |
All available actions This is the value of the id field in config_item The first group of items are ship targeting.
Definition at line 80 of file controlsconfig.h.
These are used to index a corresponding (analog) action, namely controlling the orientation angles and throttle.
Definition at line 35 of file controlsconfig.h.
enum Joy_axis_index |
These are used to index a corresponding joystick axis value from an array. Currently only used by Axis_map_to[] and Axis_map_to_defaults[]
Enumerator | |
---|---|
JOY_X_AXIS | |
JOY_Y_AXIS | |
JOY_Z_AXIS | |
JOY_RX_AXIS | |
JOY_RY_AXIS | |
JOY_RZ_AXIS |
Definition at line 22 of file controlsconfig.h.
Wrapper for check_control_used. Allows the game to ignore the key if told to do so by the ignore-key SEXP.
Definition at line 2273 of file controlsconfig.cpp.
Definition at line 2149 of file controlsconfig.cpp.
void clear_key_binding | ( | short | key | ) |
Definition at line 2138 of file controlsconfig.cpp.
void control_check_indicate | ( | ) |
Definition at line 2185 of file controlsconfig.cpp.
void control_config_cancel_exit | ( | ) |
Definition at line 1161 of file controlsconfig.cpp.
void control_config_clear | ( | ) |
Definition at line 2384 of file controlsconfig.cpp.
void control_config_clear_used_status | ( | ) |
Definition at line 2375 of file controlsconfig.cpp.
void control_config_close | ( | ) |
Definition at line 1368 of file controlsconfig.cpp.
void control_config_common_close | ( | ) |
close common control config stuff - call at game shutdown
Definition at line 616 of file controlsconfigcommon.cpp.
void control_config_common_init | ( | ) |
initialize common control config stuff - call at game startup after localization has been initialized
Definition at line 590 of file controlsconfigcommon.cpp.
Definition at line 1424 of file controlsconfig.cpp.
void control_config_init | ( | ) |
Definition at line 1266 of file controlsconfig.cpp.
Definition at line 932 of file controlsconfig.cpp.
Definition at line 2300 of file controlsconfig.cpp.
Definition at line 2352 of file controlsconfig.cpp.
char* textify_scancode | ( | int | code | ) |
Definition at line 552 of file controlsconfigcommon.cpp.
char* translate_key | ( | char * | key | ) |
Given the system default key 'key', return the current key that is bound to that function. Both are 'key' and the return value are descriptive strings that can be displayed directly to the user. If 'key' isn't a real key, is not normally bound to anything, or there is no key currently bound to the function, NULL is returned.
Definition at line 506 of file controlsconfigcommon.cpp.
int translate_key_to_index | ( | const char * | key, |
bool | find_override = true |
||
) |
Definition at line 437 of file controlsconfigcommon.cpp.
int Axis_map_to[] |
Definition at line 146 of file controlsconfig.cpp.
config_item Control_config[] |
Stores the keyboard configuration.
arrays which hold the key mappings. The array index represents a key-independent action. please use SPACES for aligning the fields of this array
Definition at line 46 of file controlsconfigcommon.cpp.
int Control_config_overlay_id |
Definition at line 182 of file controlsconfig.cpp.
SCP_vector<SCP_string> Control_config_preset_names |
Definition at line 407 of file controlsconfigcommon.cpp.
SCP_vector<config_item*> Control_config_presets |
Definition at line 406 of file controlsconfigcommon.cpp.
int Disable_axis2 |
int Disable_axis3 |
int Failed_key_index |
Definition at line 31 of file controlsconfigcommon.cpp.
int Invert_axis[] |
Definition at line 40 of file controlsconfigcommon.cpp.
int Invert_axis_defaults[] |
Definition at line 41 of file controlsconfigcommon.cpp.
int Invert_heading |
int Invert_pitch |
int Invert_roll |
int Invert_thrust |
char** Joy_button_text |
Definition at line 404 of file controlsconfigcommon.cpp.
char** Scan_code_text |
Definition at line 403 of file controlsconfigcommon.cpp.