home features api download svn donate licensesend a comment contact
Spanish  

IMouseEvent Class Reference

The mouse event callbacks. More...

#include <ceMouse.h>

Inheritance diagram for IMouseEvent:

List of all members.

Public Member Functions

virtual void OnButtonPressed (const IMouseDevice *Owner, const int button, const SMouseState &State)=0
 This callback is called when a button is pressed.
virtual void OnButtonReleased (const IMouseDevice *Owner, const int button, const SMouseState &State)=0
 This callback is called when a button is released.
virtual void OnMouseEvent (const IMouseDevice *Owner, const SMouseState &State)=0
 This callback is always called, when the cursor is moved or while is keep pressed any button.

Detailed Description

The mouse event callbacks.

Note:
To recieve the cursor positions and buffered mouse input, derive a class from this, and implement the methods here. Then set the callback to your mouse instance with IMouseDevice::SetMouseEvent().
See also:
IMouseDevice

Member Function Documentation

virtual void OnButtonPressed ( const IMouseDevice Owner,
const int  button,
const SMouseState State 
) [pure virtual]

This callback is called when a button is pressed.

Parameters:
Owner The mouse manager owner.
button The button was pressed.
State The mouse state.
See also:
OnButtonReleased, OnMouseEvent
virtual void OnButtonReleased ( const IMouseDevice Owner,
const int  button,
const SMouseState State 
) [pure virtual]

This callback is called when a button is released.

Parameters:
Owner The mouse manager owner.
button The button was released.
State The mouse state.
See also:
OnButtonPressed, OnMouseEvent
virtual void OnMouseEvent ( const IMouseDevice Owner,
const SMouseState State 
) [pure virtual]

This callback is always called, when the cursor is moved or while is keep pressed any button.

Parameters:
Owner The mouse manager owner.
State The mouse state.
See also:
OnButtonPressed, OnButtonReleased

The documentation for this class was generated from the following file:
 
 
 SourceForge.net
 
   Creative Commons License   Except where otherwise noted, content on this site is
  licensed under a Creative Commons Attribution 3.0 License