csInputEventHelper Class Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Static Public Member Functions
csInputEventHelper Class Reference
Event handling

Helper class to conveniently pull generic data out of input events. More...

`#include <csutil/event.h>`

List of all members.

## Static Public Member Functions
static uint | GetButton (iEventNameRegistry *, const iEvent *event)
| Retrieve button number (0 on error or if keyboard event)
static bool | GetButtonState (iEventNameRegistry *, const iEvent *event)
| Retrieve button/key state (true = press, false = release)

## Detailed Description

Helper class to conveniently pull generic data out of input events.

Definition at line 257 of file event.h.

## Member Function Documentation

static uint csInputEventHelper::GetButton | ( | iEventNameRegistry * | ,
|  | const iEvent * | event
| ) |  | `[static]`

Retrieve button number (0 on error or if keyboard event)

static bool csInputEventHelper::GetButtonState | ( | iEventNameRegistry * | ,
|  | const iEvent * | event
| ) |  | `[static]`

Retrieve button/key state (true = press, false = release)

The documentation for this class was generated from the following file:

- csutil/event.h