initial commit

This commit is contained in:
Richard Acayan 2024-04-15 22:11:00 -04:00
commit 1c606d0274
No known key found for this signature in database
GPG key ID: 0346F4894879DB73
36 changed files with 9908 additions and 0 deletions

23
include/input.h Normal file
View file

@ -0,0 +1,23 @@
/* SPDX-License-Identifier: GPL-3.0-only */
/*
* Input driver interface.
*
* Copyright (c) 2024, Richard Acayan. All rights reserved.
*/
#ifndef UFKBD_INPUT_H
#define UFKBD_INPUT_H
#include <stdbool.h>
struct ufkbd_ctx;
struct ufkbd_key;
int ufkbd_input_press(struct ufkbd_ctx *ctx, int id);
int ufkbd_input_position(struct ufkbd_ctx *ctx, int id, int x, int y);
int ufkbd_input_release(struct ufkbd_ctx *ctx, int id);
int ufkbd_input_repeat(struct ufkbd_ctx *ctx, int id);
int ufkbd_input_repeat_held(struct ufkbd_ctx *ctx);
#endif /* UFKBD_INPUT_H */