Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/KeyName.h
/* Copyright (C) 2015 Wildfire Games. | /* Copyright (C) 2017 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 35 Lines | enum { | ||||
MOUSE_LEFT = MOUSE_BASE + SDL_BUTTON_LEFT, | MOUSE_LEFT = MOUSE_BASE + SDL_BUTTON_LEFT, | ||||
MOUSE_MIDDLE = MOUSE_BASE + SDL_BUTTON_MIDDLE, | MOUSE_MIDDLE = MOUSE_BASE + SDL_BUTTON_MIDDLE, | ||||
MOUSE_RIGHT = MOUSE_BASE + SDL_BUTTON_RIGHT, | MOUSE_RIGHT = MOUSE_BASE + SDL_BUTTON_RIGHT, | ||||
// SDL2 doesn't count wheels as buttons, so just give them the previous sequential IDs | // SDL2 doesn't count wheels as buttons, so just give them the previous sequential IDs | ||||
MOUSE_WHEELUP = MOUSE_BASE + 4, | MOUSE_WHEELUP = MOUSE_BASE + 4, | ||||
MOUSE_WHEELDOWN = MOUSE_BASE + 5, | MOUSE_WHEELDOWN = MOUSE_BASE + 5, | ||||
MOUSE_X1 = MOUSE_BASE + SDL_BUTTON_X1 + 2, | MOUSE_X1 = MOUSE_BASE + SDL_BUTTON_X1 + 2, | ||||
MOUSE_X2 = MOUSE_BASE + SDL_BUTTON_X2 + 2, | MOUSE_X2 = MOUSE_BASE + SDL_BUTTON_X2 + 2, | ||||
MOUSE_LAST, | |||||
}; | }; | ||||
#endif // #ifndef INCLUDED_KEYNAME | #endif // #ifndef INCLUDED_KEYNAME |
Wildfire Games · Phabricator