1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-07 05:17:22 +00:00

Prefer references for delegate protocols.

This commit is contained in:
Thomas Harte
2025-08-30 00:09:38 -04:00
parent d177549dd6
commit d825c03372
44 changed files with 95 additions and 96 deletions

View File

@@ -73,8 +73,8 @@ public:
// Delegate interface.
struct Delegate {
virtual bool keyboard_did_change_key(Keyboard *keyboard, Key key, bool is_pressed) = 0;
virtual void reset_all_keys(Keyboard *keyboard) = 0;
virtual bool keyboard_did_change_key(Keyboard &, Key, bool is_pressed) = 0;
virtual void reset_all_keys(Keyboard &) = 0;
};
void set_delegate(Delegate *);
bool get_key_state(Key) const;