get_keyboard_attributes/[1,2]
get_keyboard_attributes(+AttributeList) get_keyboard_attributes(+Displayable, +AttributeList)
Allows the user to find the state of the keyboard.
Displayable is a ProXL Displayable. If omitted, the default Display is used.
AttributeList is a List of keyboard attributes, whose elements will be unified with the actual state of the keyboard. Valid attributes are:
key_click_percent(
C)
0
and 100
, giving the volume for key clicks.
bell_percent(
B)
0
and 100
, giving the base volume for the bell.
bell_pitch(
P)
bell_duration(
D)
led_mask(
L)
global_auto_repeat(
G)
on
or off
.
auto_repeats(
A)
key_auto_repeat/2
is useful for interpreting the result.
keymap(
K)
key_state/2
is useful
for interpreting the result.