finite_input_keyboard_init
The finite_input_keyboard_init function creates a new FiniteKeyboard.
FiniteKeyboard *finite_input_keyboard_init(struct wl_display *device)Parameters
Section titled “Parameters”| Type | Description |
|---|---|
struct wl_display *device | The Wayland display to conenct to. |
Code Example
Section titled “Code Example”#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);Standard Usage
Section titled “Standard Usage”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.