mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2026-10-05 13:17:55 +03:00
21 lines
449 B
C
21 lines
449 B
C
#ifndef IO_UTIL_JOYSTICK_UTIL_H
|
|
#define IO_UTIL_JOYSTICK_UTIL_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <linux/limits.h>
|
|
|
|
#define JOYSTICK_NAME_LEN 128
|
|
|
|
struct io_util_joystick_util_device_info {
|
|
char dev_path[PATH_MAX];
|
|
uint16_t num_buttons;
|
|
uint16_t num_axes;
|
|
char name[JOYSTICK_NAME_LEN];
|
|
};
|
|
|
|
size_t io_util_joystick_util_scan(struct io_util_joystick_util_device_info* devices, size_t len);
|
|
|
|
#endif
|