Device.getKey

bool getKey(uint index, out uint keyval, out gdk.types.ModifierType modifiers)

If index_ has a valid keyval, this function will return true and fill in keyval and modifiers with the keyval settings.

Parameters

indexthe index of the macro button to get.
keyvalreturn value for the keyval.
modifiersreturn value for modifiers.

Returns

true if keyval is set for index.