Skip to content

finite_input_keyboard_init

The finite_input_keyboard_init function creates a new FiniteKeyboard.

FiniteKeyboard *finite_input_keyboard_init(struct wl_display *device)
TypeDescription
struct wl_display *deviceThe Wayland display to conenct to.
#include <finite/draw.h>
#include <finite/input.h>
FiniteShell *myShell = finite_shell_init("wayland-0");
if (!myShell) {
FINITE_LOG_FATAL("Unable to init shell");
}
FiniteKeyboard *kbd = finite_input_keyboard_init(myShell->display);

Developers should create a FiniteShell before attempting to connect a physical keyboard to the window. Keyboard input is closely binded with wayland so this is the expected behavior.