|
Packit Service |
1d8f1c |
# vim:set et sts=4 sw=4:
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# ibus - The Input Bus
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
|
|
Packit Service |
1d8f1c |
# Copyright (c) 2007-2010 Red Hat, Inc.
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# This library is free software; you can redistribute it and/or
|
|
Packit Service |
1d8f1c |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
1d8f1c |
# License as published by the Free Software Foundation; either
|
|
Packit Service |
1d8f1c |
# version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# This library is distributed in the hope that it will be useful,
|
|
Packit Service |
1d8f1c |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
1d8f1c |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
1d8f1c |
# Lesser General Public License for more details.
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
1d8f1c |
# License along with this library; if not, write to the Free Software
|
|
Packit Service |
1d8f1c |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
|
Packit Service |
1d8f1c |
# USA
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
SHIFT_MASK = 1 << 0
|
|
Packit Service |
1d8f1c |
LOCK_MASK = 1 << 1
|
|
Packit Service |
1d8f1c |
CONTROL_MASK = 1 << 2
|
|
Packit Service |
1d8f1c |
ALT_MASK = 1 << 3
|
|
Packit Service |
1d8f1c |
MOD1_MASK = 1 << 3
|
|
Packit Service |
1d8f1c |
MOD2_MASK = 1 << 4
|
|
Packit Service |
1d8f1c |
MOD3_MASK = 1 << 5
|
|
Packit Service |
1d8f1c |
MOD4_MASK = 1 << 6
|
|
Packit Service |
1d8f1c |
MOD5_MASK = 1 << 7
|
|
Packit Service |
1d8f1c |
BUTTON1_MASK = 1 << 8
|
|
Packit Service |
1d8f1c |
BUTTON2_MASK = 1 << 9
|
|
Packit Service |
1d8f1c |
BUTTON3_MASK = 1 << 10
|
|
Packit Service |
1d8f1c |
BUTTON4_MASK = 1 << 11
|
|
Packit Service |
1d8f1c |
BUTTON5_MASK = 1 << 12
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
HANDLED_MASK = 1 << 24
|
|
Packit Service |
1d8f1c |
IGNORED_MASK = 1 << 25
|
|
Packit Service |
1d8f1c |
FORWARD_MASK = 1 << 25
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
SUPER_MASK = 1 << 26
|
|
Packit Service |
1d8f1c |
HYPER_MASK = 1 << 27
|
|
Packit Service |
1d8f1c |
META_MASK = 1 << 28
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
RELEASE_MASK = 1 << 30
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
MODIFIER_MASK = 0x5c001fff
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
MODIFIER_NAME_TABLE = (
|
|
Packit Service |
1d8f1c |
("Shift", SHIFT_MASK),
|
|
Packit Service |
1d8f1c |
("CapsLock", LOCK_MASK),
|
|
Packit Service |
1d8f1c |
("Ctrl", CONTROL_MASK),
|
|
Packit Service |
1d8f1c |
("Alt", MOD1_MASK),
|
|
Packit Service |
1d8f1c |
("SUPER", SUPER_MASK),
|
|
Packit Service |
1d8f1c |
("Hyper", HYPER_MASK),
|
|
Packit Service |
1d8f1c |
("Meta", META_MASK),
|
|
Packit Service |
1d8f1c |
("Release", RELEASE_MASK),
|
|
Packit Service |
1d8f1c |
)
|