mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-18 16:05:05 +00:00
- Implement generic trackball settings - Refactor T-Deck trackball driver into generic driver at `Drivers/gpio-trackball-module` - Automatically bind/unbind trackball devices with LVGL - Automatically load settings for trackball devices on boot
26 lines
442 B
C
26 lines
442 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <tactility/drivers/gpio.h>
|
|
#include <tactility/error.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
struct Device;
|
|
|
|
struct GpioTrackballConfig {
|
|
struct GpioPinSpec pin_right;
|
|
struct GpioPinSpec pin_up;
|
|
struct GpioPinSpec pin_left;
|
|
struct GpioPinSpec pin_down;
|
|
struct GpioPinSpec pin_click;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|