From Fedora Project Wiki

X Input Extension 2.0 (XI2)

Sommario

XI2 is the second major release of the X Input Extension and allows the simultaneous use of multiple independent input devices.

Progettista

Stato attuale

Detailed Description

XI2 provides a number of features over the current X Input Extension 1.5:

  • Explicit support for the master/slave device hierarchy. In X servers supporting XI2 there are two general types of devices - master devices and slave devices. Slave devices (SDs) usually represent a physical input device connected to the host computer. Master devices (MDs) are virtual input devices that are controlled by the physical input devices. Master devices appear as master pointers (i.e. a visible cursor) and master keyboards (i.e. a keyboard focus). Each time an SD generates an event, this event is passed through the MD to the respective application.
  • Support for multiple master devices. XI2 provides applications with the ability to create additional pairs of master devices (i.e one cursor and one keyboard focus). Through dynamic reattachment of SDs applications can control which physical device controls which visible cursor/keyboard focus. This allows multiple co-located users to collaborate on a single screen.
  • Support for 32 bit keycodes. Many multimedia keys cannot be processed in current X servers as the core protocol limits keycodes to a maximum of 255. Applications built against XI2 may receive keycodes up to 32 bit.
  • Support for latched/locked/base modifiers in input events.
  • Support for sub-pixel coordinates in input events.
  • Support for dynamic devices. Device may change capabilities at runtime (e.g. attaching additional buttons)
  • Support for relative motion events
  • Simplified API for retrieving device information and selecting and receiving input events.

Benefit to Fedora

XI2 allows the development of novel user interfaces, for example bi-manual input or co-located collaborative applications.

Altre informazioni

Per:

  • Obbiettivi
  • Test Plan
  • Esperienza Utente
  • Dipendenze
  • Progetto corrente
  • Documentazione
  • Note di rilascio
  • Commenti e Discussioni

Documentation

Peter has written a series of extensive blog posts about the new possibilities of XI2:

Release Notes

The update to X.Org server 1.7 provides Fedora with the X Input Extension version 2.0 (XI2). This extension provides a new client API for handling input devices and also Multi-Pointer X (MPX) functionality. MPX functionality allows users to create and remove new cursors and keyboard foci on the fly and dynamically reattach physical input devices to these cursors/foci. Each cursor/foci pair is independent of the others and can be used simultaneously, allowing for multi-user interaction on a single screen, bi-manual input and more. The XI2 API provides clients with full access to each input device and its events. Clients can thus treat events from each input devices separately, implementing features such as multi-user editing in the same document.

Other features of XI2 include:

  • Support for 32 bit keycodes.
  • Support for latched/locked/base modifiers in input events.
  • Support for sub-pixel coordinates in input events.
  • Support for dynamic devices. Device may change capabilities at runtime (e.g. attaching additional buttons)
  • Support for relative motion events
  • Simplified API for retrieving device information and selecting and receiving input events.

XI2 is non-intrusive and does not affect the default desktop. It's features only become apparent when additional cursor/keyboard focis are created or clients employ the new APIs.