23 lines
563 B
C
23 lines
563 B
C
/* 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 */
|