AntiMicroX
Loading...
Searching...
No Matches
event.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 EVENT_H
20#define EVENT_H
21
22#include "common.h"
23#include "joybuttonslot.h"
24#include "springmousemoveinfo.h"
25
26void sendevent(JoyButtonSlot *slot, bool pressed = true);
27void sendevent(int code1, int code2);
28void sendKeybEvent(JoyButtonSlot *slot, bool pressed = true);
29
31 int *const mousePosX = 0, int *const mousePos = 0);
32
33int X11KeySymToKeycode(QString key);
34QString keycodeToKeyString(int keycode, int alias = 0);
35int X11KeyCodeToX11KeySym(int keycode);
36QString keysymToKeyString(int keysym, int alias = 0);
37
38#endif // EVENT_H
Represents action which can be performed after pressing button.
Definition joybuttonslot.h:38
int X11KeySymToKeycode(QString key)
Definition event.cpp:594
void sendKeybEvent(JoyButtonSlot *slot, bool pressed=true)
Definition event.cpp:792
void sendevent(JoyButtonSlot *slot, bool pressed=true)
Definition event.cpp:142
int X11KeyCodeToX11KeySym(int keycode)
Definition event.cpp:745
QString keysymToKeyString(int keysym, int alias=0)
Definition event.cpp:763
void sendSpringEvent(PadderCommon::springModeInfo *fullSpring, PadderCommon::springModeInfo *relativeSpring=0, int *const mousePosX=0, int *const mousePos=0)
Definition event.cpp:287
QString keycodeToKeyString(int keycode, int alias=0)
Definition event.cpp:645
Definition springmousemoveinfo.h:24