Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

esve::components::dim3::Keyboard_Rotation_Handler Class Reference

Rotate a frame with the a,s,d,w keys. More...

#include <esve/components/dim3/Keyboard_Rotation_Handler.hxx>

Inheritance diagram for esve::components::dim3::Keyboard_Rotation_Handler:

esve::components::dimn::Motion_Handler esve::ui::base::Keyboard_Handler esve::message::impl::Update_Receiver esve::kernel::Wake_State_Handler esve::kernel::impl::Handler esve::message::Update_Receiver esve::kernel::impl::Handler esve::kernel::Handler esve::kernel::Handler List of all members.

Public Member Functions

 Keyboard_Rotation_Handler (engine::dim3::Transform &)
 Constructor. Give the transform to be rotated.

types::real angular_velocity () const
 Angular velocity in radians per sec.

void angular_velocity (types::real a)
 Angular velocity in radians per sec.


Protected Types

typedef ui::base::Keyboard Keyboard
 

typedef ui::base::Keyboard::Key Key
 


Protected Member Functions

void update ()
 Receive the update() message.

void update (double dt)
 Receive the update() message.

bool handle_check_awake (bool currently_awake)
 Do you want to be awake?

bool handle_key_push (Key, const Keyboard &)
 A key was pushed.

bool handle_key_release (Key, const Keyboard &)
 A key was released.

bool handle_wake ()
 The command to wake up.

bool handle_sleep ()
 The command to sleep.

bool awake () const
 Are we awake?

const Keyboardkeyboard () const
 The current state of keyboard keys.


Detailed Description

Rotate a frame with the a,s,d,w keys.


Member Function Documentation

bool esve::components::dim3::Keyboard_Rotation_Handler::handle_check_awake bool  currently_awake  )  [protected, virtual]
 

Do you want to be awake?

If currently awake, a return value of true indicates a desire to stay awake. If not currently awake, a return value of true indicates a desire to wake up.

Implements esve::kernel::Wake_State_Handler.


Generated on Tue May 30 11:40:54 2006 for esve by doxygen 1.3.4