21 lines
No EOL
419 B
C
21 lines
No EOL
419 B
C
/*
|
|
* Copyright (c) 2023 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <zephyr/kernel.h>
|
|
#include <zephyr/device.h>
|
|
|
|
struct zmk_input_config {
|
|
const struct device *dev;
|
|
bool xy_swap;
|
|
bool x_invert;
|
|
bool y_invert;
|
|
uint16_t scale_multiplier;
|
|
uint16_t scale_divisor;
|
|
};
|
|
|
|
const struct zmk_input_config *zmk_input_config_get_for_device(const struct device *dev); |