1
0
Fork 0
qmk_firmware/drivers/sensors/spacemouse_module.h

20 lines
478 B
C

// Copyright 2023 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <stdint.h>
#include <stdbool.h>
typedef struct {
int16_t x;
int16_t y;
int16_t z;
int16_t twist;
int16_t tilt_x;
int16_t tilt_y;
} spacemouse_data_t;
bool spacemouse_send_command(uint8_t cmd);
bool spacemouse_init(void);
spacemouse_data_t spacemouse_get_data(void);