14#ifndef INPUT_GP_EV_FEEDBACK_H
15#define INPUT_GP_EV_FEEDBACK_H
18#include <input/gp_types.h>
52struct gp_ev_feedback_op {
57struct gp_ev_feedback {
58 int (*set_get)(gp_ev_feedback *self, gp_ev_feedback_op *op);
gp_ev_feedback_val_leds
A bitfield of keyboard leds to manipulate.
@ GP_KBD_LED_CAPS_LOCK
A caps lock led.
@ GP_KBD_LED_NUM_LOCK
A num lock led.
@ GP_KBD_LED_KANA
A kana led.
@ GP_KBD_LED_COMPOSE
A compose led.
@ GP_KBD_LED_SCROLL_LOCK
A scroll lock led.
gp_ev_feedback_op_type
A feedback operation to be done.
@ GP_EV_LEDS_ON
Turns on leds in the val mask.
@ GP_EV_LEDS_GET
Returns leds status in the val field.
@ GP_EV_LEDS_OFF
Turns off leds in the val mask.
void gp_ev_feedback_unregister(gp_ev_feedback **root, gp_ev_feedback *self)
Removes a feedback from a feedback queue.
void gp_ev_feedback_set_all(gp_ev_feedback *root, gp_ev_feedback_op *op)
Passes an opeartion to all registered feedbacks.
void gp_ev_feedback_register(gp_ev_feedback **root, gp_ev_feedback *self)
Adds a feedback to a feedback queue.