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)
Unifies C with an integer between 0 and 100, giving the volume for key clicks.
bell_percent(B)
Unifies B with an integer between 0 and 100, giving the base volume for the bell.
bell_pitch(P)
Unifies P with a non-negative integer that gives the bell pitch, in Hz.
bell_duration(D)
Unifies D with a non-negative integer that gives the duration of the bell, in milliseconds.
led_mask(L)
Unifies L with an integer mask, where each bit set to 1 indicates that the corresponding led is on. The least significant bit of L corresponds to led 1.
global_auto_repeat(G)
Unifies G with one of on or off.
auto_repeats(A)
Unifies A with a list of bytes that indicate what keyboard keys have auto repeat enabled. The predicate key_auto_repeat/2 is useful for interpreting the result.
keymap(K)
Unifies K with a list of bytes that indicate the logical state of the keyboard. The predicate key_state/2 is useful for interpreting the result.