naev 0.12.6
joystick.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6/*
7 * gets the joystick index number based on its name
8 */
9int joystick_get( const char *namjoystick );
10
11/*
12 * sets the game to use the joystick of index indjoystick
13 */
14int joystick_use( int indjoystick );
15
16/*
17 * init/exit functions
18 */
19int joystick_init( void );
20void joystick_exit( void );
int joystick_get(const char *namjoystick)
Gets the joystick index by name.
Definition joystick.c:35
int joystick_init(void)
Initializes the joystick subsystem.
Definition joystick.c:147
int joystick_use(int indjoystick)
Makes the game use a joystick by index.
Definition joystick.c:54
void joystick_exit(void)
Exits the joystick subsystem.
Definition joystick.c:171