Event.getState

If the event contains a “state” field, puts that field in state. Otherwise stores an empty state (0). Returns TRUE if there was a state field in the event. event may be NULL, in which case it’s treated as if the event had no state field.

class Event
bool
getState

Parameters

state GdkModifierType

return location for state

Return Value

Type: bool

TRUE if there was a state field in the event