demotool/mousectrl.hh
Emmanuel BENOîT 89d125761a UI - Some refactoring
Basically trying to separate stuff from window.hh
2017-11-23 12:46:48 +01:00

25 lines
487 B
C++

#pragma once
#include "ui-input.hh"
/*= MOUSE CONTROLS INTERFACE ===================================================*/
class A_MouseCtrl
{
public:
virtual ~A_MouseCtrl( ) = 0;
virtual void handleDragAndDrop(
ImVec2 const& move ,
T_KeyboardModifiers modifiers ,
T_MouseButtons buttons
) noexcept = 0;
virtual void handleWheel(
float wheel ,
T_KeyboardModifiers modifiers ,
T_MouseButtons buttons
) noexcept = 0;
};
inline A_MouseCtrl::~A_MouseCtrl() {}