blob: 401017f1a87112771494b049b4fde4a6066df102 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="webos_extension">
Copyright (c) 2013-2020 LG Electronics, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
SPDX-License-Identifier: Apache-2.0
<interface name="wl_webos_xinput" version="1">
<description summary="interface for adding extended inputs">
xinput stands for an extended input which allows a client
to pass an input event to another client.
<enum name="keysym_type">
<description summary="the type for the symbol">
Describes the type of the symbol. The compositor will
do the necessary conversion before sending it the the
current fullscreen surface
<entry name="qt" value="1"/>
<entry name="native" value="2"/>
<enum name="event_type">
<description summary="the type of the event">
Describes the type of the event. "press_and_release"
means the compositor will send a released event after
a pressed event automatically.
<entry name="press_and_release" value="0"/>
<entry name="press" value="1"/>
<entry name="release" value="2"/>
<request name="invoke_action">
<description summary="invokes an action">
Requests to invoke an action by passing a keysym.
<arg name="keysym" type="uint"/>
<arg name="symbol_type" type="uint"/>
<arg name="event_type" type="uint"/>
<event name="activation_request">
<description summary="requests activation">
Requests that the method matching the argument string
is activated. The method is responsible for replying
back with the activated request. Currently supported
methods are: "voice", "screen_remote", "hot_key_XXXX"
NOTE: All the registered methods will get the activation
request and thus the client is responsible for performing
filtering and activating itself when it knows that it can
handle the type.
<arg name="type" type="string"/>
<event name="deactivated">
<description summary="request to deactivate">
Requests the client to deactivate this input.
<request name="activated">
<description summary="activated">
Notifies the compositor this input has been activated.
<arg name="type" type="string"/>
<request name="deactivated">
<description summary="deactivated">
Notifies the compositor this input has been deactivated.
<interface name="wl_webos_xinput_extension" version="1">
<description summary="interface for registering a new xinput extension">
This interface is used for registering a new xinput extension.
<request name="register_input">
<description summary="register input">
Registers a new xinput.
<arg name="id" type="new_id" interface="wl_webos_xinput"/>