public interface WlKeyboardEventsV3 extends WlKeyboardEventsV2
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
|
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 WlKeyboardEventsV2emitter - 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 WlKeyboardEventsV2emitter - 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 WlKeyboardEventsV2emitter - 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 WlKeyboardEventsV2emitter - 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 WlKeyboardEventsV2emitter - The protocol object that emitted the event.serial - serial number of the modifiers eventmodsDepressed - depressed modifiersmodsLatched - latched modifiersmodsLocked - locked modifiersgroup - keyboard layoutCopyright © 2016. All rights reserved.