accessor for lock modifiers
fluxgen fluxgen
1 files changed,
4 insertions(+),
2 deletions(-)
jump to
M
src/FbTk/KeyUtil.hh
→
src/FbTk/KeyUtil.hh
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: KeyUtil.hh,v 1.5 2003/12/30 18:10:43 fluxgen Exp $ +// $Id: KeyUtil.hh,v 1.6 2003/12/31 00:39:26 fluxgen Exp $ #ifndef FBTK_KEYUTIL_HH #define FBTK_KEYUTIL_HH@@ -75,7 +75,9 @@ Convert the specified key into appropriate modifier mask
@return corresponding modifier mask */ static unsigned int keycodeToModmask(unsigned int keycode); - + int numlock() const { return m_numlock; } + int capslock() const { return m_capslock; } + int scrolllock() const { return m_scrolllock; } private: void loadModmap();