RetroArch
gamepad.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * Copyright (C) 2011-2017 - Daniel De Matteis
4  * Copyright (C) 2016-2017 - Andrés Suárez
5  *
6  * RetroArch is free software: you can redistribute it and/or modify it under the terms
7  * of the GNU General Public License as published by the Free Software Found-
8  * ation, either version 3 of the License, or (at your option) any later version.
9  *
10  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  * PURPOSE. See the GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along with RetroArch.
15  * If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef GAMEPAD_H__
19 #define GAMEPAD_H__
20 
21 #include "../input_driver.h"
22 
24  void (*connected)(unsigned port, input_device_driver_t *driver);
25 };
26 
27 typedef struct _axis_data {
30 } axis_data;
31 
34 
35 #endif /* GAMEPAD_H__ */
int32_t axis
Definition: gamepad.h:28
bool is_negative
Definition: gamepad.h:29
includes all by default used to find thumbnails Please choose a single playlist first Add Entry Add Folder Select Files< multiple > Please fill out all required fields RetroArch updated successfully Please restart the application for the changes to take effect Contributors Move Down Load Remove Add Pass No shader passes Reset All Passes Download thumbnail Start on Download All Thumbnails This Playlist Configured in port
Definition: msg_hash_us.h:7699
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
Definition: ibxm.h:9
void gamepad_read_axis_data(uint32_t axis, axis_data *data)
Definition: input_common.c:37
signed short int16_t
Definition: stdint.h:122
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
void(* connected)(unsigned port, input_device_driver_t *driver)
Definition: gamepad.h:24
struct _axis_data axis_data
Definition: gamepad.h:23
signed int int32_t
Definition: stdint.h:123
Definition: input_driver.h:170
int16_t gamepad_get_axis_value(int16_t state[3][2], axis_data *data)
Definition: input_common.c:52
Definition: gamepad.h:27
unsigned int uint32_t
Definition: stdint.h:126