Virtual keyboard

virtual-keyboard-unstable-v1
Virtual keyboard

The virtual keyboard provides an application with requests which emulate the behaviour of a physical keyboard.

This interface can be used by clients on its own to provide raw input events, or it can accompany the input method protocol.

keymap(format: uint<wl_keyboard.keymap_format>, fd: fd, size: uint)
Argument
Type
Description
formatuint<wl_keyboard.keymap_format>
keymap format
fdfd
keymap file descriptor
sizeuint
keymap size, in bytes
Keyboard mapping

Provide a file descriptor to the compositor which can be memory-mapped to provide a keyboard mapping description.

key(time: uint, key: uint, state: uint<wl_keyboard.key_state>)
Argument
Type
Description
timeuint
timestamp with millisecond granularity
keyuint
key that produced the event
stateuint<wl_keyboard.key_state>
physical state of the key
Key event

A key was pressed or released.

The time argument is a timestamp with millisecond granularity, with an undefined base. All requests regarding a single object must share the same clock.

Keymap must be set before issuing this request.

modifiers(mods_depressed: uint, mods_latched: uint, mods_locked: uint, group: uint)
Argument
Type
Description
mods_depresseduint
depressed modifiers
mods_latcheduint
latched modifiers
mods_lockeduint
locked modifiers
groupuint
keyboard layout
Modifier and group state

Notifies the compositor that the modifier and/or group state has changed, and it should update state.

Keymap must be set before issuing this request.

destroy()
Destroy the virtual keyboard object
error { no_keymap } 
Argument
Value
Description
no_keymap0
No keymap was set

Virtual keyboard manager

A virtual keyboard manager allows an application to provide keyboard input events as if they came from a physical keyboard.

If the compositor enables a keyboard to perform arbitrary actions, it should prevent untrusted clients from using this interface.

create_virtual_keyboard(seat: object<wl_seat>, id: new_id<zwp_virtual_keyboard_v1>)
Argument
Type
Description
seatobject<wl_seat>
idnew_id<zwp_virtual_keyboard_v1>
the id of the newly created virtual keyboard
Create a new virtual keyboard

Creates a new virtual keyboard associated to a seat.

destroy()
Destroy the virtual keyboard manager object

Destroys the virtual keyboard manager.

Existing zwp_virtual_keyboard_v1 objects remain valid.


Copyright © 2008-2011 Kristian Høgsberg Copyright © 2010-2013 Intel Corporation Copyright © 2012-2013 Collabora, Ltd. Copyright © 2018 Purism SPC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.