ButtonEvent Struct Reference
[System Services]

Inherits Event.

Inherited by ButtonEventImpl.

List of all members.

Public Methods

virtual bool initialize (int device, int button, bool pressed)=0
virtual int getDevice () const=0
virtual int getButton () const=0
virtual bool isPressed () const=0


Detailed Description

Description of game controller button event.


Member Function Documentation

virtual int ButtonEvent::getButton   const [pure virtual]
 

Get the button index.

Scripted as
[r/o int] button

virtual int ButtonEvent::getDevice   const [pure virtual]
 

Get the device index.

Scripted as:
[r/o int] device

virtual bool ButtonEvent::initialize int    device,
int    button,
bool    pressed
[pure virtual]
 

Initialize a new event.

virtual bool ButtonEvent::isPressed   const [pure virtual]
 

Returns true if the button is currently pressed.

Scripted as:
[r/o int] pressed


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


Flat Four Engine
Copyright (C) 2001 by 379, Inc.
This page generated by Doxygen