public interface WlKeyboardEventsV4 extends WlKeyboardEventsV3
The wl_keyboard interface represents one or more keyboards associated with a seat.
| Modifier and Type | Field and Description |
|---|---|
static int |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
enter(WlKeyboardProxy emitter,
int serial,
WlSurfaceProxy surface,
ByteBuffer keys)
enter event
|
void |
key(WlKeyboardProxy emitter,
int serial,
int time,
int key,
int state)
key event
|
void |
keymap(WlKeyboardProxy emitter,
int format,
int fd,
int size)
keyboard mapping
|
void |
leave(WlKeyboardProxy emitter,
int serial,
WlSurfaceProxy surface)
leave event
|
void |
modifiers(WlKeyboardProxy emitter,
int serial,
int modsDepressed,
int modsLatched,
int modsLocked,
int group)
modifier and group state
|
void |
repeatInfo(WlKeyboardProxy emitter,
int rate,
int delay)
repeat rate and delay
|
static final int VERSION
void keymap(WlKeyboardProxy emitter, int format, int fd, int size)
This event provides a file descriptor to the client which can be memory-mapped to provide a keyboard mapping description.
keymap in interface WlKeyboardEventskeymap in interface WlKeyboardEventsV2keymap in interface WlKeyboardEventsV3emitter - The protocol object that emitted the event.format - keymap formatfd - keymap file descriptorsize - keymap size, in bytesvoid enter(WlKeyboardProxy emitter, int serial, @Nonnull WlSurfaceProxy surface, @Nonnull ByteBuffer keys)
Notification that this seat's keyboard focus is on a certain surface.
enter in interface WlKeyboardEventsenter in interface WlKeyboardEventsV2enter in interface WlKeyboardEventsV3emitter - The protocol object that emitted the event.serial - serial number of the enter eventsurface - surface gaining keyboard focuskeys - the currently pressed keysvoid leave(WlKeyboardProxy emitter, int serial, @Nonnull WlSurfaceProxy surface)
Notification that this seat's keyboard focus is no longer on a certain surface.
The leave notification is sent before the enter notification for the new focus.
leave in interface WlKeyboardEventsleave in interface WlKeyboardEventsV2leave in interface WlKeyboardEventsV3emitter - The protocol object that emitted the event.serial - serial number of the leave eventsurface - surface that lost keyboard focusvoid key(WlKeyboardProxy emitter, int serial, int time, int key, int state)
A key was pressed or released. The time argument is a timestamp with millisecond granularity, with an undefined base.
key in interface WlKeyboardEventskey in interface WlKeyboardEventsV2key in interface WlKeyboardEventsV3emitter - The protocol object that emitted the event.serial - serial number of the key eventtime - timestamp with millisecond granularitykey - key that produced the eventstate - physical state of the keyvoid modifiers(WlKeyboardProxy emitter, int serial, int modsDepressed, int modsLatched, int modsLocked, int group)
Notifies clients that the modifier and/or group state has changed, and it should update its local state.
modifiers in interface WlKeyboardEventsmodifiers in interface WlKeyboardEventsV2modifiers in interface WlKeyboardEventsV3emitter - The protocol object that emitted the event.serial - serial number of the modifiers eventmodsDepressed - depressed modifiersmodsLatched - latched modifiersmodsLocked - locked modifiersgroup - keyboard layoutvoid repeatInfo(WlKeyboardProxy emitter, int rate, int delay)
Informs the client about the keyboard's repeat rate and delay.
This event is sent as soon as the wl_keyboard object has been created, and is guaranteed to be received by the client before any key press event.
Negative values for either rate or delay are illegal. A rate of zero will disable any repeating (regardless of the value of delay).
This event can be sent later on as well with a new value if necessary, so clients should continue listening for the event past the creation of wl_keyboard.
emitter - The protocol object that emitted the event.rate - the rate of repeating keys in characters per seconddelay - delay in milliseconds since key down until repeating startsCopyright © 2016. All rights reserved.