IInputEventListener.h 578 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * IInputEventListener.h
  3. *
  4. * Created on: 5 déc. 2020
  5. * Author: fanch
  6. */
  7. #ifndef SRC_IINPUTEVENTLISTENER_H_
  8. #define SRC_IINPUTEVENTLISTENER_H_
  9. class Button;
  10. class Controller;
  11. class NoteOn;
  12. class NoteOff;
  13. class ControllerChange;
  14. class IInputEventListener
  15. {
  16. public:
  17. virtual ~IInputEventListener(){}
  18. virtual void on_press(Button* b, const NoteOn& m){}
  19. virtual void on_release(Button* b, const NoteOff& m){}
  20. virtual void on_control_change(Controller* b, const ControllerChange& m){}
  21. };
  22. #endif /* SRC_IINPUTEVENTLISTENER_H_ */