You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
441 B
22 lines
441 B
|
6 years ago
|
#pragma once
|
||
|
|
|
||
|
|
// Keyboard keys acting like gamepad buttons
|
||
|
|
#ifndef HAS_KBCTRL
|
||
|
|
#define HAS_KBCTRL 0
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#if HAS_KBCTRL == 1
|
||
|
|
#include <SDL.h>
|
||
|
|
#include "controls/controller_buttons.h"
|
||
|
|
|
||
|
5 years ago
|
namespace devilution {
|
||
|
6 years ago
|
|
||
|
5 years ago
|
ControllerButton KbCtrlToControllerButton(const SDL_Event &event);
|
||
|
5 years ago
|
|
||
|
|
bool IsKbCtrlButtonPressed(ControllerButton button);
|
||
|
6 years ago
|
|
||
|
5 years ago
|
bool ProcessKbCtrlAxisMotion(const SDL_Event &event);
|
||
|
|
|
||
|
5 years ago
|
} // namespace devilution
|
||
|
6 years ago
|
#endif
|