BALL::VIEW::ButtonEvent Class Reference

#include <BALL/VIEW/INPUT/buttonEvent.h>

Inheritance diagram for BALL::VIEW::ButtonEvent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ButtonEvent (EventsIDs type, InputDeviceDriver *dev, InputDeviceButton cause)
 ButtonEvent (EventsIDs type, InputDeviceDriver *dev, InputDeviceButton cause, InputDeviceButtons buttons)
InputDeviceButton button () const
InputDeviceButtons buttons () const

Private Attributes

InputDeviceButton cause_
InputDeviceButtons buttons_

Detailed Description

This event encodes button states of a custom input device. It is emitted when a button is either pressed or released.

Definition at line 34 of file buttonEvent.h.


Constructor & Destructor Documentation

BALL::VIEW::ButtonEvent::ButtonEvent ( EventsIDs  type,
InputDeviceDriver dev,
InputDeviceButton  cause 
)
BALL::VIEW::ButtonEvent::ButtonEvent ( EventsIDs  type,
InputDeviceDriver dev,
InputDeviceButton  cause,
InputDeviceButtons  buttons 
)

Member Function Documentation

InputDeviceButton BALL::VIEW::ButtonEvent::button (  )  const [inline]

Return the button that caused the event.

Definition at line 43 of file buttonEvent.h.

InputDeviceButtons BALL::VIEW::ButtonEvent::buttons (  )  const [inline]

Returns the state of the devices buttons when the event was emitted.

Definition at line 48 of file buttonEvent.h.


Member Data Documentation

Definition at line 51 of file buttonEvent.h.

Definition at line 50 of file buttonEvent.h.

Generated by  doxygen 1.6.3