Files
furui/padkey_pointer.h
2026-04-01 22:30:31 +09:00

38 lines
1.1 KiB
C

/*
This file is part of Furui.
Furui is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Furui is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Furui. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef PADKEY_POINTER_H
#define PADKEY_POINTER_H
struct padkey_pointer {
unsigned int x_code;
unsigned int y_code;
int vx;
int vy;
int charge;
unsigned int left_code;
unsigned int center_code;
unsigned int right_code;
unsigned int wheel_code;
unsigned int wheel_mode;
};
extern void padkey_pointer_initialize(struct padkey_pointer *pointer);
extern void padkey_pointer_update(struct padkey_pointer *pointer, unsigned int type, unsigned int code, int value);
#endif /* PADKEY_POINTER_H */