API Documentation
MouseDevice.h
1 // MouseDevice.h
3 //
5 
6 namespace nkInputs
7 {
22  {
23  public :
24 
30  MouseDevice (System* system) noexcept ;
34  virtual ~MouseDevice () ;
35 
36  // Getters
40  System* getSystem () const ;
44  virtual int getX () const = 0 ;
48  virtual int getY () const = 0 ;
52  virtual long getLastXMovement () const = 0 ;
56  virtual long getLastYMovement () const = 0 ;
60  virtual long getLastZMovement () const = 0 ;
64  virtual bool getLeftButton () const = 0 ;
68  virtual bool getRightButton () const = 0 ;
72  virtual bool getCenterButton () const = 0 ;
73 
77  virtual void update () = 0 ;
78 
79  public :
80 
88  static nkMemory::UniquePtr<MouseDevice> create (System* system = nullptr) ;
89  } ;
90 }
nkInputs::MouseDevice::~MouseDevice
virtual ~MouseDevice()
nkInputs::MouseDevice
A mouse device.
Definition: MouseDevice.h:22
nkInputs::MouseDevice::getX
virtual int getX() const =0
nkInputs::MouseDevice::getCenterButton
virtual bool getCenterButton() const =0
nkInputs::MouseDevice::getLeftButton
virtual bool getLeftButton() const =0
nkInputs::MouseDevice::update
virtual void update()=0
nkInputs::MouseDevice::getLastYMovement
virtual long getLastYMovement() const =0
nkInputs::System
Main interface with the component.
Definition: System.h:38
nkInputs
Encompasses all API of component NilkinsInputs.
Definition: KeyboardDevice.h:7
nkInputs::MouseDevice::getRightButton
virtual bool getRightButton() const =0
nkInputs::MouseDevice::getSystem
System * getSystem() const
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkInputs::MouseDevice::getLastZMovement
virtual long getLastZMovement() const =0
nkInputs::MouseDevice::getY
virtual int getY() const =0
nkInputs::MouseDevice::create
static nkMemory::UniquePtr< MouseDevice > create(System *system=nullptr)
nkInputs::MouseDevice::getLastXMovement
virtual long getLastXMovement() const =0
nkInputs::MouseDevice::MouseDevice
MouseDevice(System *system) noexcept