Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- Exported types
- Methods
- getAssociatedDevice
- getAxis
- getAxisValue
- getCoords
- getDeviceCoords
- getDeviceId
- getDeviceMode
- getDeviceName
- getDeviceType
- getEnabled
- getGrabbedActor
- getHasCursor
- getKey
- getModifierState
- getNAxes
- getNKeys
- getPointerActor
- getPointerStage
- getProductId
- getSlaveDevices
- getVendorId
- grab
- keycodeToEvdev
- sequenceGetGrabbedActor
- sequenceGrab
- sequenceUngrab
- setEnabled
- setKey
- ungrab
- updateFromEvent
- Properties
Generic representation of an input device. The actual contents of this structure depend on the backend used.
Synopsis
- newtype InputDevice = InputDevice (ManagedPtr InputDevice)
- class (GObject o, IsDescendantOf InputDevice o) => IsInputDevice o
- toInputDevice :: (MonadIO m, IsInputDevice o) => o -> m InputDevice
- inputDeviceGetAssociatedDevice :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m InputDevice
- inputDeviceGetAxis :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> Word32 -> m InputAxis
- inputDeviceGetAxisValue :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> [Double] -> InputAxis -> m (Bool, Double)
- inputDeviceGetCoords :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> Maybe EventSequence -> m (Bool, Point)
- inputDeviceGetDeviceCoords :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m (Int32, Int32)
- inputDeviceGetDeviceId :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Int32
- inputDeviceGetDeviceMode :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m InputMode
- inputDeviceGetDeviceName :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Text
- inputDeviceGetDeviceType :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m InputDeviceType
- inputDeviceGetEnabled :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Bool
- inputDeviceGetGrabbedActor :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Actor
- inputDeviceGetHasCursor :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Bool
- inputDeviceGetKey :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> Word32 -> m (Bool, Word32, [ModifierType])
- inputDeviceGetModifierState :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m [ModifierType]
- inputDeviceGetNAxes :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Word32
- inputDeviceGetNKeys :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Word32
- inputDeviceGetPointerActor :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Actor
- inputDeviceGetPointerStage :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Stage
- inputDeviceGetProductId :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Text
- inputDeviceGetSlaveDevices :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m [InputDevice]
- inputDeviceGetVendorId :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m Text
- inputDeviceGrab :: (HasCallStack, MonadIO m, IsInputDevice a, IsActor b) => a -> b -> m ()
- inputDeviceKeycodeToEvdev :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> Word32 -> Word32 -> m Bool
- inputDeviceSequenceGetGrabbedActor :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> EventSequence -> m Actor
- inputDeviceSequenceGrab :: (HasCallStack, MonadIO m, IsInputDevice a, IsActor b) => a -> EventSequence -> b -> m ()
- inputDeviceSequenceUngrab :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> EventSequence -> m ()
- inputDeviceSetEnabled :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> Bool -> m ()
- inputDeviceSetKey :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> Word32 -> Word32 -> [ModifierType] -> m ()
- inputDeviceUngrab :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> m ()
- inputDeviceUpdateFromEvent :: (HasCallStack, MonadIO m, IsInputDevice a) => a -> Event -> Bool -> m ()
- constructInputDeviceBackend :: (IsInputDevice o, MonadIO m, IsBackend a) => a -> m (GValueConstruct o)
- getInputDeviceBackend :: (MonadIO m, IsInputDevice o) => o -> m (Maybe Backend)
- constructInputDeviceDeviceManager :: (IsInputDevice o, MonadIO m, IsDeviceManager a) => a -> m (GValueConstruct o)
- getInputDeviceDeviceManager :: (MonadIO m, IsInputDevice o) => o -> m (Maybe DeviceManager)
- constructInputDeviceDeviceMode :: (IsInputDevice o, MonadIO m) => InputMode -> m (GValueConstruct o)
- getInputDeviceDeviceMode :: (MonadIO m, IsInputDevice o) => o -> m InputMode
- constructInputDeviceDeviceType :: (IsInputDevice o, MonadIO m) => InputDeviceType -> m (GValueConstruct o)
- getInputDeviceDeviceType :: (MonadIO m, IsInputDevice o) => o -> m InputDeviceType
- constructInputDeviceEnabled :: (IsInputDevice o, MonadIO m) => Bool -> m (GValueConstruct o)
- getInputDeviceEnabled :: (MonadIO m, IsInputDevice o) => o -> m Bool
- setInputDeviceEnabled :: (MonadIO m, IsInputDevice o) => o -> Bool -> m ()
- constructInputDeviceHasCursor :: (IsInputDevice o, MonadIO m) => Bool -> m (GValueConstruct o)
- getInputDeviceHasCursor :: (MonadIO m, IsInputDevice o) => o -> m Bool
- constructInputDeviceId :: (IsInputDevice o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getInputDeviceId :: (MonadIO m, IsInputDevice o) => o -> m Int32
- getInputDeviceNAxes :: (MonadIO m, IsInputDevice o) => o -> m Word32
- constructInputDeviceName :: (IsInputDevice o, MonadIO m) => Text -> m (GValueConstruct o)
- getInputDeviceName :: (MonadIO m, IsInputDevice o) => o -> m (Maybe Text)
- constructInputDeviceProductId :: (IsInputDevice o, MonadIO m) => Text -> m (GValueConstruct o)
- getInputDeviceProductId :: (MonadIO m, IsInputDevice o) => o -> m Text
- constructInputDeviceVendorId :: (IsInputDevice o, MonadIO m) => Text -> m (GValueConstruct o)
- getInputDeviceVendorId :: (MonadIO m, IsInputDevice o) => o -> m Text
Exported types
newtype InputDevice Source #
Memory-managed wrapper type.
Instances
Eq InputDevice Source # | |
Defined in GI.Clutter.Objects.InputDevice (==) :: InputDevice -> InputDevice -> Bool # (/=) :: InputDevice -> InputDevice -> Bool # | |
GObject InputDevice Source # | |
Defined in GI.Clutter.Objects.InputDevice | |
ManagedPtrNewtype InputDevice Source # | |
Defined in GI.Clutter.Objects.InputDevice | |
TypedObject InputDevice Source # | |
Defined in GI.Clutter.Objects.InputDevice | |
HasParentTypes InputDevice Source # | |
Defined in GI.Clutter.Objects.InputDevice | |
IsGValue (Maybe InputDevice) Source # | Convert |
Defined in GI.Clutter.Objects.InputDevice gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe InputDevice -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe InputDevice) # | |
type ParentTypes InputDevice Source # | |
Defined in GI.Clutter.Objects.InputDevice |
class (GObject o, IsDescendantOf InputDevice o) => IsInputDevice o Source #
Type class for types which can be safely cast to InputDevice
, for instance with toInputDevice
.
Instances
(GObject o, IsDescendantOf InputDevice o) => IsInputDevice o Source # | |
Defined in GI.Clutter.Objects.InputDevice |
toInputDevice :: (MonadIO m, IsInputDevice o) => o -> m InputDevice Source #
Cast to InputDevice
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, grab, isFloating, keycodeToEvdev, notify, notifyByPspec, ref, refSink, runDispose, sequenceGetGrabbedActor, sequenceGrab, sequenceUngrab, stealData, stealQdata, thawNotify, ungrab, unref, updateFromEvent, watchClosure.
Getters
getAssociatedDevice, getAxis, getAxisValue, getCoords, getData, getDeviceCoords, getDeviceId, getDeviceMode, getDeviceName, getDeviceType, getEnabled, getGrabbedActor, getHasCursor, getKey, getModifierState, getNAxes, getNKeys, getPointerActor, getPointerStage, getProductId, getProperty, getQdata, getSlaveDevices, getVendorId.
Setters
getAssociatedDevice
inputDeviceGetAssociatedDevice Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m InputDevice | Returns: a |
Retrieves a pointer to the InputDevice
that has been
associated to device
.
If the InputDevice
:device-mode
property of device
is
set to InputModeMaster
, this function will return
Nothing
.
Since: 1.6
getAxis
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> Word32 |
|
-> m InputAxis | Returns: the axis type |
Retrieves the type of axis on device
at the given index.
Since: 1.6
getAxisValue
inputDeviceGetAxisValue Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> [Double] |
|
-> InputAxis |
|
-> m (Bool, Double) |
Extracts the value of the given axis
of a InputDevice
from
an array of axis values.
An example of typical usage for this function is:
ClutterInputDevice *device = clutter_event_get_device (event); gdouble *axes = clutter_event_get_axes (event, NULL); gdouble pressure_value = 0; clutter_input_device_get_axis_value (device, axes, CLUTTER_INPUT_AXIS_PRESSURE, &pressure_value);
Since: 1.6
getCoords
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> Maybe EventSequence |
|
-> m (Bool, Point) | Returns: |
Retrieves the latest coordinates of a pointer or touch point of
device
.
Since: 1.12
getDeviceCoords
inputDeviceGetDeviceCoords Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m (Int32, Int32) |
Deprecated: (Since version 1.12)Use inputDeviceGetCoords
instead.
Retrieves the latest coordinates of the pointer of device
Since: 1.2
getDeviceId
inputDeviceGetDeviceId Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Int32 | Returns: the identifier of the device |
Retrieves the unique identifier of device
Since: 1.0
getDeviceMode
inputDeviceGetDeviceMode Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m InputMode | Returns: the device mode |
Retrieves the InputMode
of device
.
Since: 1.6
getDeviceName
inputDeviceGetDeviceName Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Text | Returns: the name of the device, or |
Retrieves the name of the device
Since: 1.2
getDeviceType
inputDeviceGetDeviceType Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m InputDeviceType | Returns: the type of the device |
Retrieves the type of device
Since: 1.0
getEnabled
inputDeviceGetEnabled Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Bool | Returns: |
Retrieves whether device
is enabled.
Since: 1.6
getGrabbedActor
inputDeviceGetGrabbedActor Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Actor |
Retrieves a pointer to the Actor
currently grabbing all
the events coming from device
.
Since: 1.10
getHasCursor
inputDeviceGetHasCursor Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Bool | Returns: |
Retrieves whether device
has a pointer that follows the
device motion.
Since: 1.6
getKey
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> Word32 |
|
-> m (Bool, Word32, [ModifierType]) | Returns: |
Retrieves the key set using inputDeviceSetKey
Since: 1.6
getModifierState
inputDeviceGetModifierState Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m [ModifierType] | Returns: the last known modifier state |
Retrieves the current modifiers state of the device, as seen by the last event Clutter processed.
Since: 1.16
getNAxes
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Word32 | Returns: the number of axes on the device |
Retrieves the number of axes available on device
.
Since: 1.6
getNKeys
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Word32 | Returns: the number of registered keys |
Retrieves the number of keys registered for device
.
Since: 1.6
getPointerActor
inputDeviceGetPointerActor Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Actor |
Retrieves the Actor
underneath the pointer of device
Since: 1.2
getPointerStage
inputDeviceGetPointerStage Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Stage |
Retrieves the Stage
underneath the pointer of device
Since: 1.2
getProductId
inputDeviceGetProductId Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Text | Returns: the product ID |
Gets the product ID of this device.
Since: 1.22
getSlaveDevices
inputDeviceGetSlaveDevices Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m [InputDevice] | Returns: a
list of |
Retrieves the slave devices attached to device
.
Since: 1.6
getVendorId
inputDeviceGetVendorId Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m Text | Returns: the vendor ID |
Gets the vendor ID of this device.
Since: 1.22
grab
:: (HasCallStack, MonadIO m, IsInputDevice a, IsActor b) | |
=> a |
|
-> b |
|
-> m () |
Acquires a grab on actor
for the given device
.
Any event coming from device
will be delivered to actor
, bypassing
the usual event delivery mechanism, until the grab is released by
calling inputDeviceUngrab
.
The grab is client-side: even if the windowing system used by the Clutter backend has the concept of "device grabs", Clutter will not use them.
Only InputDevice
of types InputDeviceTypePointerDevice
and
InputDeviceTypeKeyboardDevice
can hold a grab.
Since: 1.10
keycodeToEvdev
inputDeviceKeycodeToEvdev Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> Word32 |
|
-> Word32 |
|
-> m Bool |
Translates a hardware keycode from a KeyEvent
to the
equivalent evdev keycode. Note that depending on the input backend
used by Clutter this function can fail if there is no obvious
mapping between the key codes. The hardware keycode can be taken
from the KeyEvent
.hardware_keycode
member of KeyEvent
.
Since: 1.10
sequenceGetGrabbedActor
inputDeviceSequenceGetGrabbedActor Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> EventSequence |
|
-> m Actor |
Retrieves a pointer to the Actor
currently grabbing the
touch events coming from device
given the sequence
.
Since: 1.12
sequenceGrab
inputDeviceSequenceGrab Source #
:: (HasCallStack, MonadIO m, IsInputDevice a, IsActor b) | |
=> a |
|
-> EventSequence |
|
-> b |
|
-> m () |
Acquires a grab on actor
for the given device
and the given touch
sequence
.
Any touch event coming from device
and from sequence
will be
delivered to actor
, bypassing the usual event delivery mechanism,
until the grab is released by calling
inputDeviceSequenceUngrab
.
The grab is client-side: even if the windowing system used by the Clutter backend has the concept of "device grabs", Clutter will not use them.
Since: 1.12
sequenceUngrab
inputDeviceSequenceUngrab Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> EventSequence |
|
-> m () |
Releases the grab on the device
for the given sequence
, if one is
in place.
Since: 1.12
setEnabled
inputDeviceSetEnabled Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> Bool |
|
-> m () |
Enables or disables a InputDevice
.
Only devices with a InputDevice
:device-mode
property set
to InputModeSlave
or InputModeFloating
can
be disabled.
Since: 1.6
setKey
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> Word32 |
|
-> Word32 |
|
-> [ModifierType] |
|
-> m () |
Sets the keyval and modifiers at the given index_
for device
.
Clutter will use the keyval and modifiers set when filling out an event coming from the same input device.
Since: 1.6
ungrab
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> m () |
Releases the grab on the device
, if one is in place.
Since: 1.10
updateFromEvent
inputDeviceUpdateFromEvent Source #
:: (HasCallStack, MonadIO m, IsInputDevice a) | |
=> a |
|
-> Event |
|
-> Bool |
|
-> m () |
Forcibly updates the state of the device
using a Event
This function should never be used by applications: it is meant for integration with embedding toolkits, like clutter-gtk
Embedding toolkits that disable the event collection inside Clutter
need to use this function to update the state of input devices depending
on a Event
that they are going to submit to the event handling code
in Clutter though doEvent
. Since the input devices hold the state
that is going to be used to fill in fields like the ButtonEvent
click count, or to emit synthesized events like EventTypeEnter
and
EventTypeLeave
, it is necessary for embedding toolkits to also be
responsible of updating the input device state.
For instance, this might be the code to translate an embedding toolkit
native motion notification into a Clutter MotionEvent
and ask
Clutter to process it:
ClutterEvent c_event; translate_native_event_to_clutter (native_event, &c_event); clutter_do_event (&c_event);
Before letting doEvent
process the event, it is necessary to call
inputDeviceUpdateFromEvent
:
ClutterEvent c_event; ClutterDeviceManager *manager; ClutterInputDevice *device; translate_native_event_to_clutter (native_event, &c_event); // get the device manager manager = clutter_device_manager_get_default (); // use the default Core Pointer that Clutter backends register by default device = clutter_device_manager_get_core_device (manager, %CLUTTER_POINTER_DEVICE); // update the state of the input device clutter_input_device_update_from_event (device, &c_event, FALSE); clutter_do_event (&c_event);
The updateStage
boolean argument should be used when the input device
enters and leaves a Stage
; it will use the Stage
field
of the passed event
to update the stage associated to the input device.
Since: 1.2
Properties
backend
The Backend
that created the device.
Since: 1.6
constructInputDeviceBackend :: (IsInputDevice o, MonadIO m, IsBackend a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “backend
” property. This is rarely needed directly, but it is used by new
.
getInputDeviceBackend :: (MonadIO m, IsInputDevice o) => o -> m (Maybe Backend) Source #
Get the value of the “backend
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #backend
deviceManager
The DeviceManager
instance which owns the device
Since: 1.6
constructInputDeviceDeviceManager :: (IsInputDevice o, MonadIO m, IsDeviceManager a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “device-manager
” property. This is rarely needed directly, but it is used by new
.
getInputDeviceDeviceManager :: (MonadIO m, IsInputDevice o) => o -> m (Maybe DeviceManager) Source #
Get the value of the “device-manager
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #deviceManager
deviceMode
No description available in the introspection data.
constructInputDeviceDeviceMode :: (IsInputDevice o, MonadIO m) => InputMode -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “device-mode
” property. This is rarely needed directly, but it is used by new
.
getInputDeviceDeviceMode :: (MonadIO m, IsInputDevice o) => o -> m InputMode Source #
Get the value of the “device-mode
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #deviceMode
deviceType
The type of the device
Since: 1.2
constructInputDeviceDeviceType :: (IsInputDevice o, MonadIO m) => InputDeviceType -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “device-type
” property. This is rarely needed directly, but it is used by new
.
getInputDeviceDeviceType :: (MonadIO m, IsInputDevice o) => o -> m InputDeviceType Source #
Get the value of the “device-type
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #deviceType
enabled
Whether the device is enabled.
A device with the InputDevice
:device-mode
property set
to InputModeMaster
cannot be disabled.
A device must be enabled in order to receive events from it.
Since: 1.6
constructInputDeviceEnabled :: (IsInputDevice o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “enabled
” property. This is rarely needed directly, but it is used by new
.
getInputDeviceEnabled :: (MonadIO m, IsInputDevice o) => o -> m Bool Source #
Get the value of the “enabled
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #enabled
setInputDeviceEnabled :: (MonadIO m, IsInputDevice o) => o -> Bool -> m () Source #
Set the value of the “enabled
” property.
When overloading is enabled, this is equivalent to
set
inputDevice [ #enabled:=
value ]
hasCursor
Whether the device has an on screen cursor following its movement.
Since: 1.6
constructInputDeviceHasCursor :: (IsInputDevice o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “has-cursor
” property. This is rarely needed directly, but it is used by new
.
getInputDeviceHasCursor :: (MonadIO m, IsInputDevice o) => o -> m Bool Source #
Get the value of the “has-cursor
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #hasCursor
id
The unique identifier of the device
Since: 1.2
constructInputDeviceId :: (IsInputDevice o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “id
” property. This is rarely needed directly, but it is used by new
.
getInputDeviceId :: (MonadIO m, IsInputDevice o) => o -> m Int32 Source #
Get the value of the “id
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #id
nAxes
The number of axes of the device.
Since: 1.6
getInputDeviceNAxes :: (MonadIO m, IsInputDevice o) => o -> m Word32 Source #
Get the value of the “n-axes
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #nAxes
name
The name of the device
Since: 1.2
constructInputDeviceName :: (IsInputDevice o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “name
” property. This is rarely needed directly, but it is used by new
.
getInputDeviceName :: (MonadIO m, IsInputDevice o) => o -> m (Maybe Text) Source #
Get the value of the “name
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #name
productId
Product ID of this device.
Since: 1.22
constructInputDeviceProductId :: (IsInputDevice o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “product-id
” property. This is rarely needed directly, but it is used by new
.
getInputDeviceProductId :: (MonadIO m, IsInputDevice o) => o -> m Text Source #
Get the value of the “product-id
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #productId
vendorId
Vendor ID of this device.
Since: 1.22
constructInputDeviceVendorId :: (IsInputDevice o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “vendor-id
” property. This is rarely needed directly, but it is used by new
.
getInputDeviceVendorId :: (MonadIO m, IsInputDevice o) => o -> m Text Source #
Get the value of the “vendor-id
” property.
When overloading is enabled, this is equivalent to
get
inputDevice #vendorId