MouseInput Class Reference

Mouse input device. More...

#include <mouseinput.h>

Inheritance diagram for MouseInput:

Inheritance graph
[legend]
Collaboration diagram for MouseInput:

Collaboration graph
[legend]
List of all members.

Public Slots

void mousePress (QPoint point)
 Recevied a mouse press event.

Signals

void signalConvertMousePress (QPoint mouse, int &playerNumber, int &cardNumber)
 Convert mouse coordinate.

Public Member Functions

 MouseInput (QObject *parent)
 Constructor for the input.
virtual InputDevice::InputDeviceType type ()
 Retrieve the type of device.

Detailed Description

Mouse input device.

Definition at line 35 of file mouseinput.h.


Constructor & Destructor Documentation

MouseInput::MouseInput QObject *  parent  ) 
 

Constructor for the input.

Parameters:
parent The parent object

Definition at line 32 of file mouseinput.cpp.


Member Function Documentation

void MouseInput::mousePress QPoint  point  )  [slot]
 

Recevied a mouse press event.

Parameters:
point The position [screen coordiantes]

Definition at line 39 of file mouseinput.cpp.

References AbstractInput::mId, AbstractInput::mInputAllowed, signalConvertMousePress(), and AbstractInput::signalPlayerInput().

void MouseInput::signalConvertMousePress QPoint  mouse,
int &  playerNumber,
int &  cardNumber
[signal]
 

Convert mouse coordinate.

Parameters:
mouse The mouse position [screen coordinates]
playerNumber The player number [0-1]
cardNumber The card number [0-7]

Referenced by mousePress().

virtual InputDevice::InputDeviceType MouseInput::type  )  [inline, virtual]
 

Retrieve the type of device.

Returns:
The decice type.

Implements AbstractInput.

Definition at line 48 of file mouseinput.h.

References InputDevice::TypeMouseInput.


The documentation for this class was generated from the following files:
Generated on Tue May 1 09:34:40 2007 for LSkat by  doxygen 1.4.6