1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
/*
* Modification History
*
* 2000-December-19 Jason Rohrer
* Created.
*/
#ifndef MOUSE_HANDLER_GL_INCLUDED
#define MOUSE_HANDLER_GL_INCLUDED
/**
* Interface for an object that can field OpenGL mouse events.
*
* @author Jason Rohrer
*/
class MouseHandlerGL {
public:
/**
* Callback function for when mouse moves.
*
* @param inX x position of mouse.
* @param inY y position of mouse.
*/
virtual void mouseMoved( int inX, int inY ) = 0;
/**
* Callback function for when mouse moves with button depressed.
*
* @param inX x position of mouse.
* @param inY y position of mouse.
*/
virtual void mouseDragged( int inX, int inY ) = 0;
/**
* Callback function for when the mouse button is depressed.
*
* @param inX x position of mouse.
* @param inY y position of mouse.
*/
virtual void mousePressed( int inX, int inY ) = 0;
/**
* Callback function for when the mouse button is released.
*
* @param inX x position of mouse.
* @param inY y position of mouse.
*/
virtual void mouseReleased( int inX, int inY ) = 0;
};
#endif
|