AntiMicroX
qtwinkeymapper.h
Go to the documentation of this file.
1 /* antimicrox Gamepad to KB+M event mapper
2  * Copyright (C) 2015 Travis Nickles <nickles.travis@gmail.com>
3  * Copyright (C) 2020 Jagoda Górska <juliagoda.pl@protonmail>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9 
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14 
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef QTWINKEYMAPPER_H
20 #define QTWINKEYMAPPER_H
21 
22 #include "qtkeymapperbase.h"
23 
25 {
26  Q_OBJECT
27 
28  public:
29  explicit QtWinKeyMapper(QObject *parent = nullptr);
30 
31  virtual int returnQtKey(int key, int scancode = 0) override;
32 
33  protected:
34  void populateMappingHashes() override;
35  void populateCharKeyInformation() override;
36 };
37 
38 #endif // QTWINKEYMAPPER_H
QtKeyMapperBase::AntKey_Meta_R
@ AntKey_Meta_R
Definition: qtkeymapperbase.h:53
QtKeyMapperBase::AntKey_Shift_R
@ AntKey_Shift_R
Definition: qtkeymapperbase.h:50
QtKeyMapperBase::AntKey_KP_Add
@ AntKey_KP_Add
Definition: qtkeymapperbase.h:58
QtKeyMapperBase::AntKey_KP_Divide
@ AntKey_KP_Divide
Definition: qtkeymapperbase.h:55
QtKeyMapperBase::AntKey_KP_Subtract
@ AntKey_KP_Subtract
Definition: qtkeymapperbase.h:57
WinExtras::EXTENDED_FLAG
static const unsigned int EXTENDED_FLAG
Definition: winextras.h:18
QtKeyMapperBase::virtkeyToCharKeyInfo
QHash< int, charKeyInformation > virtkeyToCharKeyInfo
Definition: qtkeymapperbase.h:91
dynamicOEMToQtKeyHash
static QHash< unsigned int, unsigned int > dynamicOEMToQtKeyHash
Definition: qtwinkeymapper.cpp:110
QtKeyMapperBase::AntKey_Alt_R
@ AntKey_Alt_R
Definition: qtkeymapperbase.h:54
QtKeyMapperBase::AntKey_KP_0
@ AntKey_KP_0
Definition: qtkeymapperbase.h:73
winextras.h
QtKeyMapperBase::AntKey_KP_Multiply
@ AntKey_KP_Multiply
Definition: qtkeymapperbase.h:56
QtWinKeyMapper::populateCharKeyInformation
void populateCharKeyInformation() override
Definition: qtwinkeymapper.cpp:345
QtKeyMapperBase::virtKeyToQtKeyHash
QHash< int, int > virtKeyToQtKeyHash
Definition: qtkeymapperbase.h:90
intCharToQtKey
static QHash< QString, unsigned int > intCharToQtKey()
Definition: qtwinkeymapper.cpp:46
QtWinKeyMapper
Definition: qtwinkeymapper.h:24
deadKeyToQtKeyHash
static QHash< QString, unsigned int > deadKeyToQtKeyHash
Definition: qtwinkeymapper.cpp:112
QtWinKeyMapper::populateMappingHashes
void populateMappingHashes() override
Definition: qtwinkeymapper.cpp:122
QtKeyMapperBase::identifier
QString identifier
Definition: qtkeymapperbase.h:92
QtKeyMapperBase
Definition: qtkeymapperbase.h:25
QtKeyMapperBase::AntKey_Control_R
@ AntKey_Control_R
Definition: qtkeymapperbase.h:51
initDynamicKeyMapping
static QHash< unsigned int, unsigned int > initDynamicKeyMapping()
Definition: qtwinkeymapper.cpp:26
QtKeyMapperBase::AntKey_KP_Decimal
@ AntKey_KP_Decimal
Definition: qtkeymapperbase.h:59
QtWinKeyMapper::returnQtKey
virtual int returnQtKey(int key, int scancode=0) override
Definition: qtwinkeymapper.cpp:333
charToQtKeyHash
static QHash< QString, unsigned int > charToQtKeyHash
Definition: qtwinkeymapper.cpp:111
qtkeymapperbase.h
qtwinkeymapper.h
QtKeyMapperBase::qtKeyToVirtKeyHash
QHash< int, int > qtKeyToVirtKeyHash
Definition: qtkeymapperbase.h:89
QtKeyMapperBase::_charKeyInformation::virtualkey
int virtualkey
Definition: qtkeymapperbase.h:35
initDeadKeyToQtKey
static QHash< QString, unsigned int > initDeadKeyToQtKey()
Definition: qtwinkeymapper.cpp:83
QtWinKeyMapper::QtWinKeyMapper
QtWinKeyMapper(QObject *parent=nullptr)
Definition: qtwinkeymapper.cpp:114
QtKeyMapperBase::_charKeyInformation::modifiers
Qt::KeyboardModifiers modifiers
Definition: qtkeymapperbase.h:34
QtKeyMapperBase::_charKeyInformation
Definition: qtkeymapperbase.h:32