zmk/app/include/zmk/mouse/input_config.h
Peter Johanson b2f6163188 feat(mouse): Add input configs for data mods.
* Add ability to swap X/Y, invert X and Y values, and apply a
  scalar multiplier/divisor.
2024-08-03 21:10:32 +00:00

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);