get_pointer_attributes/[1,2]
get_pointer_attributes(+AttributeList) get_pointer_attributes(+Screenable, +AttributeList)
Allows the user to find the state of the pointer.
Screenable is a ProXL Screenable. If omitted, the default Screen is used.
AttributeList is a List of pointer attributes, whose elements will be unified with the actual state of the pointer. Valid attributes are:
acceleration(
A)
threshold(
T)
mapping(
B1,
B2,
B3,
B4,
B5)
0
to 5
,
denoting the current mapping of physical pointer buttons to
logical pointer buttons. The nominal mapping is Bi = i.
A value of 0
, means that the button is disabled.
root_position(
X,
Y)
window(
W,
X,
Y)
get_pointer_attributes
will backtrack over all windows in the
hierarchy that contain the pointer, except for the root window.
deepest(
W,
X,
Y)
state(
B,
M)
state_mask/2
,
buttons_mask/2
and modifiers_mask/2
are useful for
translating
between buttons and modifiers representations and bitmasks.