fesoliveira014 / yanve

0 stars 0 forks source link

Add event listeners to Application class #16

Open fesoliveira014 opened 4 years ago

fesoliveira014 commented 4 years ago

Add virtual methods for input events on the Application class.

class Application
{
public:
  // ...
protected:
  void onResized();
  void onMouseMoved();
  void onKeyPressed();
  void onMouseButtom();
  void onMouseButtomDisplacement();
  void onFocusGained();
  void onFocusLost();
  void onQuit();
  // etc...
}

These are application specific and should be implemented by the user.