DDraceNetwork Documentation
Loading...
Searching...
No Matches
input.cpp File Reference
#include "input.h"
#include "keynames.h"
#include <base/system.h>
#include <base/windows.h>
#include <engine/console.h>
#include <engine/graphics.h>
#include <engine/input.h>
#include <engine/keys.h>
#include <engine/shared/config.h>
#include <SDL.h>
#include <SDL_syswm.h>
Include dependency graph for input.cpp:

Macros

#define SDL_JOYSTICK_AXIS_MIN   (-32768)
#define SDL_JOYSTICK_AXIS_MAX   32767

Functions

static int TranslateKeyEventKey (const SDL_KeyboardEvent &KeyEvent)
static int TranslateMouseButtonEventKey (const SDL_MouseButtonEvent &MouseButtonEvent)
static int TranslateMouseWheelEventKey (const SDL_MouseWheelEvent &MouseWheelEvent)
IEngineInputCreateEngineInput ()

Macro Definition Documentation

◆ SDL_JOYSTICK_AXIS_MAX

#define SDL_JOYSTICK_AXIS_MAX   32767

◆ SDL_JOYSTICK_AXIS_MIN

#define SDL_JOYSTICK_AXIS_MIN   (-32768)

Function Documentation

◆ CreateEngineInput()

IEngineInput * CreateEngineInput ( )

◆ TranslateKeyEventKey()

int TranslateKeyEventKey ( const SDL_KeyboardEvent & KeyEvent)
static

◆ TranslateMouseButtonEventKey()

int TranslateMouseButtonEventKey ( const SDL_MouseButtonEvent & MouseButtonEvent)
static

◆ TranslateMouseWheelEventKey()

int TranslateMouseWheelEventKey ( const SDL_MouseWheelEvent & MouseWheelEvent)
static