initial commit
This commit is contained in:
commit
1c606d0274
36 changed files with 9908 additions and 0 deletions
23
include/input.h
Normal file
23
include/input.h
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue