aboutsummaryrefslogtreecommitdiff
path: root/src/gamepad.h
blob: 295619cd00df77ce64558acf46cadbb9cf85fdeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef GAMEPAD_H
#define GAMEPAD_H

typedef struct
{
    int16_t x;
    int16_t y;
    int16_t z;
    int16_t rz;
    uint8_t gas;
    uint8_t brake;
    uint8_t hat;
    uint16_t buttons;
} gamepad_t;

extern gamepad_t gamepad;

void request_can_send_now_event(void);

#endif