input
Header: kmsroots/input.h
Table of contents (click to go)
Macros
Enums
Unions
Structs
Functions
Function Pointers
API Documentation
kmr_input
kmr_input_create_info
-
struct kmr_input_create_info
-
Only included if libseat support enabled
session- Address of
structkmr_session. Which members are used to communicatewith systemd-logind via D-Bus systemd-logind interface. Needed bykmr_input_create()to acquire and taken control of a device without theneed of being root.
kmr_input_create
-
struct kmr_input *kmr_input_create(struct kmr_input_create_info *inputInfo);
Creates a libinput instance and pollable fd.
- Parameters:
- inputInfoPointer to a struct kmr_input_create_info used store information aboutthe current seatd/sytemd-logind D-Bus session
- Returns:
- on success: Pointer to a
structkmr_inputon failure:NULL
kmr_input_destroy
-
void kmr_input_destroy(struct kmr_input *input);
Frees any allocated memory and closes FD’s (if open) created after
kmr_input_create()call.- Parameters:
- inputMust pass a valid pointer to a
structkmr_input/* Free'd members with fd's closed */ struct kmr_input { struct libinput *inputInst; int inputfd; };