package oxbow
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=a637acaa0e19046cd65fff733874eb97
sha512=76230cbecd7510de7a05b5d1f335915ef7b6c4aa557d8dbfd23591606618d2cfa25082d17b93f2f4b53a118d1cbf6a80e4ad51cf0f099b4921fb83d6df0c9801
doc/oxbow.river/River/Obj/Input/Management/C/River_input_device_v1/index.html
Module C.River_input_device_v1Source
An input device.
An input device represents a physical keyboard, mouse, touchscreen, or drawing tablet tool. It is assigned to exactly one seat at a time. By default, all input devices are assigned to the default seat.
Version 1
val map_to_rectangle :
[< `V1 | `V2 ] t ->
x:int32 ->
y:int32 ->
width:int32 ->
height:int32 ->
unitMap input device to the given rectangle.
Map the input device to the given rectangle in the global compositor coordinate space. Has no effect if the device is not a pointer, touch, or tablet device.
If mapped to both an output and a rectangle, the rectangle has priority.
Width and height must be greater than or equal to 0.
Passing 0 for width or height clears an existing mapping.
val map_to_output :
[< `V1 | `V2 ] t ->
output:([ `Wl_output ], 'a, [ `Client ]) Wayland.Proxy.t option ->
unitMap input device to the given output.
Map the input device to the given output. Has no effect if the device is not a pointer, touch, or tablet device.
If mapped to both an output and a rectangle, the rectangle has priority.
Passing null clears an existing mapping.
Set scroll factor.
Set the scroll factor for a pointer input device. Has no effect if the device is not a pointer.
For example, a factor of 0.5 will make scrolling twice as slow while a factor of 3.0 will make scrolling 3 times as fast.
Setting a scroll factor less than 0 is a protocol error.
Set keyboard repeat rate and delay.
Set repeat rate and delay for a keyboard input device. Has no effect if the device is not a keyboard.
Negative values for either rate or delay are illegal. A rate of zero will disable any repeating (regardless of the value of delay).
Assign the input device to a seat.
Assign the input device to a seat. All input devices not explicitly assigned to a seat are considered assigned to the default seat.
Has no effect if a seat with the given name does not exist.
Destroy the input device object.
This request indicates that the client will no longer use the input device object and that it may be safely destroyed.
Version 2
Handlers
Note: Servers will always want to use v1.