Pointer Input Devices

emWin provides support for pointer-input-devices. Pointer input devices can be touch-screen, mouse or joystick. The basic emWin package includes a driver for analog touch-screens, a PS2 mouse driver, as well as a sample joystick driver. Other types of touch-panel and mouse devices can also be used with the appropriate drivers. The software for input devices is located in the subdirectory GUICore.

Pointer input devices are devices such as mouse, touch-screen, joystick. Multiple pointer input devices can be used in a single application to enable simultaneous mouse/touch-screen/joystick use. Basically all a PID driver does is call the routine GUI_PID_StoreState() whenever an event (such as mouse move, or press on the touch screen) has been detected.
The window manager takes care of the appropriate reaction to PID events; If the window manager is not used, your application is responsible for reacting to PID events.

Mouse

Mouse support consists of two "layers": a generic layer and a mouse driver layer. Generic routines refer to those functions which always exist, no matter what type of mouse driver you use. The available mouse driver routines, on the other hand, will call the appropriate generic routines as necessary, and may only be used with the PS2 mouse driver supplied with emWin. If you write your own driver, it is responsible for calling the generic routines. The generic mouse routines will in turn call the corresponding PID routines.

Joystick

emWin supports joysticks with 4-direction switches (up, down, left, right) and push buttons.
More information can be found in the latest emWin manual.