qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

test_pointing_device_driver.h (531B)


      1 // Copyright 2024 Dasky (@daskygit)
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 
      4 #pragma once
      5 
      6 #ifdef __cplusplus
      7 extern "C" {
      8 #endif
      9 
     10 void pd_press_button(uint8_t btn);
     11 void pd_release_button(uint8_t btn);
     12 void pd_clear_all_buttons(void);
     13 
     14 void pd_set_x(int16_t x);
     15 void clear_x(void);
     16 
     17 void pd_set_y(int16_t y);
     18 void pd_clear_y(void);
     19 
     20 void pd_set_h(int16_t h);
     21 void pd_clear_h(void);
     22 
     23 void pd_set_v(int16_t v);
     24 void pd_clear_v(void);
     25 
     26 void pd_clear_movement(void);
     27 
     28 void pd_set_init(bool success);
     29 
     30 #ifdef __cplusplus
     31 }
     32 #endif