Faith::KeyPressEvent Class Reference

Represents many types keyboard events. More...

#include <faith/event.h>

Inheritance diagram for Faith::KeyPressEvent:

Faith::Event List of all members.

Public Member Functions

 KeyPressEvent (EventType t, int state, Key key, const String &text)
String text () const
int state () const
Key key () const

Detailed Description

Represents many types keyboard events.

Used for EventKeyPress and EventKeyRelease

Constructor & Destructor Documentation

Faith::KeyPressEvent::KeyPressEvent ( EventType  t,
int  state,
Key  key,
const String text 
) [inline]

Member Function Documentation

Key Faith::KeyPressEvent::key (  )  const [inline]

int Faith::KeyPressEvent::state (  )  const [inline]

what keys were pressed at the time? Event::ButtonState, ORed

String Faith::KeyPressEvent::text (  )  const [inline]

a string of one or more characters used. May be empty if a non-printable character was pressed, like Page_Up

The documentation for this class was generated from the following file:
Generated on Fri Sep 1 00:23:09 2006 for Faith by  doxygen 1.4.7