ManaPlus
src
enums
input
inputcondition.h
Go to the documentation of this file.
1
/*
2
* The ManaPlus Client
3
* Copyright (C) 2012-2019 The ManaPlus Developers
4
* Copyright (C) 2019-2021 Andrei Karas
5
*
6
* This file is part of The ManaPlus Client.
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef ENUMS_INPUT_INPUTCONDITION_H
23
#define ENUMS_INPUT_INPUTCONDITION_H
24
25
namespace
InputCondition
26
{
27
enum
Type
28
{
29
DEFAULT
= 1U,
// default condition
30
ENABLED
= 2U,
// keyboard must be enabled
31
NOINPUT
= 4U,
// input items must be unfocused
32
NOAWAY
= 8U,
// player not in away mode
33
NOSETUP
= 16U,
// setup window is hidde
34
VALIDSPEED
= 32U,
// valid speed
35
NOMODAL
= 64U,
// modal windows inactive
36
NONPCINPUT
= 128U,
// npc input field inactive
37
EMODS
= 256U,
// game modifiers enabled
38
NOTARGET
= 512U,
// no target/untarget keys
39
// pressed
40
NOFOLLOW
= 1024U,
// follow mode disabled
41
INGAME
= 2048U,
// game must be started
42
NOBUYSELL
= 4096U,
// no active buy or sell dialogs
43
NONPCDIALOG
= 8192U,
// no active npc dialog or
44
// dialog almost closed
45
NOTALKING
= 16384U,
// player have no opened
46
// dialogs what prevent moving
47
ALIVE
= 32768U,
// player alive
48
NOVENDING
= 65536U,
// vending disabled
49
NOROOM
= 131072U,
// not joined room
50
NOBLOCK
= 262144U,
// no blocked move (trick dead)
51
KEY_DOWN
= 524288U,
// key press allowed
52
KEY_UP
= 1048576U,
// key release allowed
53
SHORTCUT
= 2U + 4 + 16 + 512 + 2048,
// flags for shortcut keys
54
SHORTCUT0
= 2U + 4 + 16 + 512,
// flags for shortcut keys
55
GAME
= 2U + 4 + 8 + 16 + 64 + 2048,
// main game key
56
GAME2
= 2U + 8 + 16 + 64 + 2048,
57
ARROWKEYS
= 2U + 4 + 8 + 16 + 64 + 2048 + 4096 +
58
16384 + 65536 + 131072 + 262144
59
};
60
}
// namespace InputCondition
61
62
#endif
// ENUMS_INPUT_INPUTCONDITION_H
InputCondition
Definition:
inputcondition.h:26
InputCondition::Type
Type
Definition:
inputcondition.h:28
InputCondition::KEY_UP
@ KEY_UP
Definition:
inputcondition.h:52
InputCondition::EMODS
@ EMODS
Definition:
inputcondition.h:37
InputCondition::NONPCINPUT
@ NONPCINPUT
Definition:
inputcondition.h:36
InputCondition::NOTALKING
@ NOTALKING
Definition:
inputcondition.h:45
InputCondition::GAME
@ GAME
Definition:
inputcondition.h:55
InputCondition::NOAWAY
@ NOAWAY
Definition:
inputcondition.h:32
InputCondition::ARROWKEYS
@ ARROWKEYS
Definition:
inputcondition.h:57
InputCondition::INGAME
@ INGAME
Definition:
inputcondition.h:41
InputCondition::SHORTCUT0
@ SHORTCUT0
Definition:
inputcondition.h:54
InputCondition::ALIVE
@ ALIVE
Definition:
inputcondition.h:47
InputCondition::NOINPUT
@ NOINPUT
Definition:
inputcondition.h:31
InputCondition::SHORTCUT
@ SHORTCUT
Definition:
inputcondition.h:53
InputCondition::NOROOM
@ NOROOM
Definition:
inputcondition.h:49
InputCondition::NOMODAL
@ NOMODAL
Definition:
inputcondition.h:35
InputCondition::NONPCDIALOG
@ NONPCDIALOG
Definition:
inputcondition.h:43
InputCondition::NOTARGET
@ NOTARGET
Definition:
inputcondition.h:38
InputCondition::NOFOLLOW
@ NOFOLLOW
Definition:
inputcondition.h:40
InputCondition::ENABLED
@ ENABLED
Definition:
inputcondition.h:30
InputCondition::GAME2
@ GAME2
Definition:
inputcondition.h:56
InputCondition::KEY_DOWN
@ KEY_DOWN
Definition:
inputcondition.h:51
InputCondition::NOBLOCK
@ NOBLOCK
Definition:
inputcondition.h:50
InputCondition::NOBUYSELL
@ NOBUYSELL
Definition:
inputcondition.h:42
InputCondition::DEFAULT
@ DEFAULT
Definition:
inputcondition.h:29
InputCondition::VALIDSPEED
@ VALIDSPEED
Definition:
inputcondition.h:34
InputCondition::NOVENDING
@ NOVENDING
Definition:
inputcondition.h:48
InputCondition::NOSETUP
@ NOSETUP
Definition:
inputcondition.h:33
Generated on Wed Mar 17 2021 19:19:05 for ManaPlus by
1.9.1