Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SysSystemDriver Class Reference

DJGPP version. More...

#include <djgpp.h>

Inheritance diagram for SysSystemDriver:

csSystemDriver iEventPlug iBase iBase List of all members.

Public Methods

bool SetMouse (csMouseCursorID shape)
bool RunBeApp ()
bool QueueMessage (BMessage *)
bool QueueMessage (uint32, void const *=0)
 SCF_DECLARE_IBASE_EXT (csSystemDriver)
 SysSystemDriver (iObjectRegistry *object_reg)
 ~SysSystemDriver ()
virtual bool Initialize ()
 This is usually called right after object creation.

bool HandleEvent (iEvent &ev)
virtual unsigned int GetPotentiallyConflictingEvents ()
 Get the mask of events that can be generated by this source and are generated directly from user actions (e.g. More...

virtual unsigned int QueryEventPriority (unsigned int)
 Query how strong the plug's wish to generate certain class of events is. More...

 SysSystemDriver (iObjectRegistry *object_reg)
virtual ~SysSystemDriver ()
bool HandleEvent (iEvent &ev)
virtual bool Initialize ()
 This is usually called right after object creation.

void SetMousePosition (int x, int y)
 Set the mouse position (function for DosHelper).

void DoEnablePrintf (bool en)
 Enable/disable printf (function for DosHelper).

 SCF_DECLARE_IBASE_EXT (csSystemDriver)
virtual unsigned GetPotentiallyConflictingEvents ()
 Get the mask of events that can be generated by this source and are generated directly from user actions (e.g. More...

virtual unsigned QueryEventPriority (unsigned)
 Query how strong the plug's wish to generate certain class of events is. More...

 SysSystemDriver (iObjectRegistry *object_reg)
virtual ~SysSystemDriver ()
virtual void Close ()
virtual bool Initialize ()
 This is usually called right after object creation.

virtual void Alert (const char *s)
virtual void Warn (const char *s)
OSErr HandleAppleEvent (const AppleEvent *theEvent)
 SCF_DECLARE_IBASE_EXT (csSystemDriver)
virtual unsigned GetPotentiallyConflictingEvents ()
 Get the mask of events that can be generated by this source and are generated directly from user actions (e.g. More...

virtual unsigned QueryEventPriority (unsigned)
 Query how strong the plug's wish to generate certain class of events is. More...

 SysSystemDriver (iObjectRegistry *r)

Public Attributes

SysSystemDriver::eiEventHandler  scfiEventHandler

Protected Types

enum  { CSBE_MOUSE_BUTTON_COUNT = 3 }

Protected Methods

void HideMouse ()
void ShowMouse ()
void DispatchMessage (BMessage *)
void CheckMouseMoved ()
void DoContextClose (BMessage *)
void DoMouseMotion (BMessage *)
void DoMouseAction (BMessage *)
void DoKeyAction (BMessage *)
void QueueMouseEvent (int button, bool down, BPoint)
void CheckButton (int button, int32 buttons, int32 mask, BPoint)
void CheckButtons (BMessage *)
void CheckModifiers (BMessage *)
void CheckModifier (long flags, long mask, int tag, bool &state) const
void ClassifyFunctionKey (BMessage *, int &cs_key, int &cs_char) const
void ClassifyNormalKey (int, BMessage *, int &cs_key, int &cs_char) const
int ClassifyUnicodeKey (BMessage *) const
virtual void MessageReceived (BMessage *)

Protected Attributes

bool running
BMessageQueue message_queue
iEventOutletevent_outlet
bool shift_down
bool alt_down
bool ctrl_down
bool button_state [CSBE_MOUSE_BUTTON_COUNT]
bool real_mouse
bool mouse_moved
BPoint mouse_point

Static Protected Methods

int32 ThreadEntry (void *)

Detailed Description

DJGPP version.


Member Function Documentation

unsigned SysSystemDriver::GetPotentiallyConflictingEvents ( ) [inline, virtual]
 

Get the mask of events that can be generated by this source and are generated directly from user actions (e.g.

key presses, mouse clicks and so on). This is used to locate potentialy conflicting combinations of event source plugins (for example two event sources may generate a csevKeyDown event each from every key press).

The mask is a combination of CSEVTYPE_XXX values ORed together.

Reimplemented from iEventPlug.

unsigned SysSystemDriver::GetPotentiallyConflictingEvents ( ) [inline, virtual]
 

Get the mask of events that can be generated by this source and are generated directly from user actions (e.g.

key presses, mouse clicks and so on). This is used to locate potentialy conflicting combinations of event source plugins (for example two event sources may generate a csevKeyDown event each from every key press).

The mask is a combination of CSEVTYPE_XXX values ORed together.

Reimplemented from iEventPlug.

unsigned SysSystemDriver::GetPotentiallyConflictingEvents ( ) [inline, virtual]
 

Get the mask of events that can be generated by this source and are generated directly from user actions (e.g.

key presses, mouse clicks and so on). This is used to locate potentialy conflicting combinations of event source plugins (for example two event sources may generate a csevKeyDown event each from every key press).

The mask is a combination of CSEVTYPE_XXX values ORed together.

Reimplemented from iEventPlug.

unsigned SysSystemDriver::QueryEventPriority ( unsigned int ) [inline, virtual]
 

Query how strong the plug's wish to generate certain class of events is.

The plug with the strongest wish wins. The argument is one of CSEVTYPE_XXX values (but never a combination of several OR'ed together).

The typical value is somewhere around 100; the event plugs which are sometimes implemented inside the system drivers (such as for Windows and DJGPP) usually have the priority 100.

Reimplemented from iEventPlug.

unsigned SysSystemDriver::QueryEventPriority ( unsigned int ) [inline, virtual]
 

Query how strong the plug's wish to generate certain class of events is.

The plug with the strongest wish wins. The argument is one of CSEVTYPE_XXX values (but never a combination of several OR'ed together).

The typical value is somewhere around 100; the event plugs which are sometimes implemented inside the system drivers (such as for Windows and DJGPP) usually have the priority 100.

Reimplemented from iEventPlug.

unsigned SysSystemDriver::QueryEventPriority ( unsigned int ) [inline, virtual]
 

Query how strong the plug's wish to generate certain class of events is.

The plug with the strongest wish wins. The argument is one of CSEVTYPE_XXX values (but never a combination of several OR'ed together).

The typical value is somewhere around 100; the event plugs which are sometimes implemented inside the system drivers (such as for Windows and DJGPP) usually have the priority 100.

Reimplemented from iEventPlug.


The documentation for this class was generated from the following files:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000