mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
Codefix 90029be
: build failure for SDL 1.2
This commit is contained in:
parent
0b50834f81
commit
8b6661d486
@ -377,15 +377,15 @@ struct SDLVkMapping {
|
|||||||
const uint8_t vk_count;
|
const uint8_t vk_count;
|
||||||
const uint8_t map_to;
|
const uint8_t map_to;
|
||||||
|
|
||||||
constexpr SDLVkMapping(SDL_Keycode vk_first, SDL_Keycode vk_last, uint8_t map_first, [[maybe_unused]] uint8_t map_last)
|
constexpr SDLVkMapping(SDLKey vk_first, SDLKey vk_last, uint8_t map_first, [[maybe_unused]] uint8_t map_last)
|
||||||
: vk_from(vk_first), vk_count(vk_first - vk_last + 1), map_to(map_first)
|
: vk_from(vk_first), vk_count(vk_first - vk_last + 1), map_to(map_first)
|
||||||
{
|
{
|
||||||
assert((vk_last - vk_first) == (map_last - map_first));
|
assert((vk_last - vk_first) == (map_last - map_first));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define AS(x, z) {x, x, z, z, false}
|
#define AS(x, z) {x, x, z, z}
|
||||||
#define AM(x, y, z, w) {x, y, z, w, false}
|
#define AM(x, y, z, w) {x, y, z, w}
|
||||||
|
|
||||||
static constexpr SDLVkMapping _vk_mapping[] = {
|
static constexpr SDLVkMapping _vk_mapping[] = {
|
||||||
/* Pageup stuff + up/down */
|
/* Pageup stuff + up/down */
|
||||||
|
Loading…
Reference in New Issue
Block a user