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

Macros

#define KEYS_INCLUDE
 
#define SDL_JOYSTICK_AXIS_MIN   (-32768)
 
#define SDL_JOYSTICK_AXIS_MAX   32767
 

Functions

static void AssertKeyValid (int Key)
 
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

◆ KEYS_INCLUDE

#define KEYS_INCLUDE

◆ SDL_JOYSTICK_AXIS_MAX

#define SDL_JOYSTICK_AXIS_MAX   32767

◆ SDL_JOYSTICK_AXIS_MIN

#define SDL_JOYSTICK_AXIS_MIN   (-32768)

Function Documentation

◆ AssertKeyValid()

static void AssertKeyValid ( int  Key)
static

◆ CreateEngineInput()

IEngineInput * CreateEngineInput ( )

◆ TranslateKeyEventKey()

static int TranslateKeyEventKey ( const SDL_KeyboardEvent &  KeyEvent)
static

◆ TranslateMouseButtonEventKey()

static int TranslateMouseButtonEventKey ( const SDL_MouseButtonEvent &  MouseButtonEvent)
static

◆ TranslateMouseWheelEventKey()

static int TranslateMouseWheelEventKey ( const SDL_MouseWheelEvent &  MouseWheelEvent)
static