Skip to content
  • Emmanuele Bassi's avatar
    device: Allow updating devices from embedding toolkits · 51a3e49c
    Emmanuele Bassi authored
    Embedding toolkits most likely will disable the event handling, so all
    the input device code will not be executed. Unfortunately, the newly
    added synthetic event generation of ENTER and LEAVE event pairs depends
    on having input devices.
    
    In order to unbreak things without reintroducing the madness of the
    previous code we should allow embedding toolkits to just update the
    state of an InputDevice by using the data contained inside the
    ClutterEvent. This strategy has two obvious reasons:
    
      • the embedding toolkit is creating a ClutterEvent by translating
        a toolkit-native event anyway
    
      • this is exactly what ClutterStage does when processing events
    
    We are, essentially, deferring input device handling to the embedding
    toolkits, just like we're deferring event handling to them.
    51a3e49c