Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Win32Joystick Class Reference

UIObject subclass to allow joystick-based motion control on MS-Windows. More...

#include <Win32Joystick.h>

Inheritance diagram for Win32Joystick:

UIObject List of all members.

Public Types

enum  MoveMode {
  OFF, ROTATION, TRANSLATION, SCALING,
  USER
}
 different available movement modes. More...


Public Methods

 Win32Joystick (VMDApp *)
virtual ~Win32Joystick (void)
virtual void reset (void)
 reset the user interface (force update of all info displays). More...

virtual int act_on_command (int, Command *)
 update the display due to a command being executed. Return whether any action was taken on this command. Arguments are the command type, command object, and the success of the command (T or F). More...

virtual int check_event (void)
 check for event, queue if found, return TRUE if an event was generated. More...


Detailed Description

UIObject subclass to allow joystick-based motion control on MS-Windows.

Definition at line 49 of file Win32Joystick.h.


Member Enumeration Documentation

enum Win32Joystick::MoveMode
 

different available movement modes.

Enumeration values:
OFF 
ROTATION 
TRANSLATION 
SCALING 
USER 

Definition at line 52 of file Win32Joystick.h.


Constructor & Destructor Documentation

Win32Joystick::Win32Joystick VMDApp  
 

Definition at line 31 of file Win32Joystick.C.

References vmdwinjoystick::caps, vmdwinjoystick::exists, vmdwinjoystick::moveMode, NULL, OFF, reset, vmdwinjoystick::xrange, vmdwinjoystick::yrange, and vmdwinjoystick::zrange.

Win32Joystick::~Win32Joystick void    [virtual]
 

Definition at line 87 of file Win32Joystick.C.

References NULL.


Member Function Documentation

int Win32Joystick::act_on_command int   ,
Command  
[virtual]
 

update the display due to a command being executed. Return whether any action was taken on this command. Arguments are the command type, command object, and the success of the command (T or F).

Reimplemented from UIObject.

Definition at line 103 of file Win32Joystick.C.

int Win32Joystick::check_event void    [virtual]
 

check for event, queue if found, return TRUE if an event was generated.

Reimplemented from UIObject.

Definition at line 119 of file Win32Joystick.C.

References UIObject::app, DisplayDevice::AUX, vmdwinjoystick::avail, vmdwinjoystick::buttonchanged, vmdwinjoystick::buttons, vmdwinjoystick::caps, DisplayDevice::EventCodes, vmdwinjoystick::exists, vmdwinjoystick::info, vmdwinjoystick::moveMode, NULL, nullregion, OFF, ROTATION, UIObject::runcommand, SCALING, VMDApp::scene_resetview, VMDApp::scene_rotate_by, VMDApp::scene_scale_by, VMDApp::scene_translate_by, TRANSLATION, vmdwinjoystick::vx, vmdwinjoystick::vy, vmdwinjoystick::vz, DisplayDevice::WIN_KBD, vmdwinjoystick::xrange, vmdwinjoystick::yrange, and vmdwinjoystick::zrange.

void Win32Joystick::reset void    [virtual]
 

reset the user interface (force update of all info displays).

Reimplemented from UIObject.

Definition at line 95 of file Win32Joystick.C.

Referenced by Win32Joystick.


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 02:47:31 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002