diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-12 21:02:01 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-12 21:02:01 +0000 |
commit | 9196535878dfe2a6eb7bde909b0b2312ade8ad29 (patch) | |
tree | 96ff27d4f43a23fce93b30781e9957eb7ce457ab /libs/gtkmm2ext/gtkmm2ext | |
parent | eee61a9f9bf297d454e07bd2e2b9d3d1824b8272 (diff) |
lotsa keybindings for nearly everything in the step editor
git-svn-id: svn://localhost/ardour2/branches/3.0@7610 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/gtkmm2ext/bindings.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/bindings.h b/libs/gtkmm2ext/gtkmm2ext/bindings.h index 6959dc82e1..45c3cfd809 100644 --- a/libs/gtkmm2ext/gtkmm2ext/bindings.h +++ b/libs/gtkmm2ext/gtkmm2ext/bindings.h @@ -23,14 +23,10 @@ class KeyboardKey _val = GDK_VoidSymbol; } - KeyboardKey (int state, int keycode) { - _val = state; - _val <<= 32; - _val |= keycode; - }; + KeyboardKey (uint32_t state, uint32_t keycode); - int state() const { return _val >> 32; } - int key() const { return _val & 0xffff; } + uint32_t state() const { return _val >> 32; } + uint32_t key() const { return _val & 0xffff; } bool operator<(const KeyboardKey& other) const { return _val < other._val; @@ -42,9 +38,13 @@ class KeyboardKey std::string name() const; static bool make_key (const std::string&, KeyboardKey&); - + static void set_ignored_state (int mask) { + _ignored_state = mask; + } + private: uint64_t _val; + static uint32_t _ignored_state; }; class ActionMap { |