From ba4d737a9ec66377cb4a3b4224aacca8c894bbc1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 19 Sep 2008 23:59:39 +0000 Subject: [PATCH] allow specifying the initial modifier keys values in the ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/kbdstate.h | 13 ++++++++----- interface/wx/kbdstate.h | 7 +++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/include/wx/kbdstate.h b/include/wx/kbdstate.h index b3a44e88c0..d2055a0c09 100644 --- a/include/wx/kbdstate.h +++ b/include/wx/kbdstate.h @@ -20,11 +20,14 @@ class WXDLLIMPEXP_CORE wxKeyboardState { public: - wxKeyboardState() - : m_controlDown(false), - m_shiftDown(false), - m_altDown(false), - m_metaDown(false) + wxKeyboardState(bool controlDown = false, + bool shiftDown = false, + bool altDown = false, + bool metaDown = false) + : m_controlDown(controlDown), + m_shiftDown(shiftDown), + m_altDown(altDown), + m_metaDown(metaDown) { } diff --git a/interface/wx/kbdstate.h b/interface/wx/kbdstate.h index 9a99a7c217..49162c98e3 100644 --- a/interface/wx/kbdstate.h +++ b/interface/wx/kbdstate.h @@ -26,11 +26,14 @@ class wxKeyboardState { public: /** - Default constructor. + Constructor initializes the modifier key settings. By default, no modifiers are active. */ - wxKeyboardState(); + wxKeyboardState(bool controlDown, + bool shiftDown, + bool altDown, + bool metaDown); /** Return the bit mask of all pressed modifier keys.