aboutsummaryrefslogtreecommitdiff
path: root/users/drashna/pimoroni_trackball.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/pimoroni_trackball.h')
-rw-r--r--users/drashna/pimoroni_trackball.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/users/drashna/pimoroni_trackball.h b/users/drashna/pimoroni_trackball.h
index 7e8a7cc81..83d248d3f 100644
--- a/users/drashna/pimoroni_trackball.h
+++ b/users/drashna/pimoroni_trackball.h
@@ -1,3 +1,19 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
1#pragma once 17#pragma once
2 18
3#include "quantum.h" 19#include "quantum.h"
@@ -11,6 +27,7 @@
11 27
12void trackball_set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white); 28void trackball_set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white);
13void trackball_check_click(bool pressed, report_mouse_t *mouse); 29void trackball_check_click(bool pressed, report_mouse_t *mouse);
30void trackball_register_button(bool pressed, enum mouse_buttons button);
14 31
15float trackball_get_precision(void); 32float trackball_get_precision(void);
16void trackball_set_precision(float precision); 33void trackball_set_precision(float precision);