OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4ConfigControls Class Reference

#include <C4Config.h>

Collaboration diagram for C4ConfigControls:
[legend]

Public Member Functions

void CompileFunc (StdCompiler *pComp)
 
void ResetKeys ()
 

Public Attributes

int32_t GamepadGuiControl
 
int32_t MouseAutoScroll
 
C4PlayerControlAssignmentSets UserSets
 

Detailed Description

Definition at line 227 of file C4Config.h.

Member Function Documentation

void C4ConfigControls::CompileFunc ( StdCompiler pComp)

Definition at line 262 of file C4Config.cpp.

References GamepadGuiControl, mkNamingAdapt(), MouseAutoScroll, UserSets, and StdCompiler::Value().

263 {
264 #ifndef USE_CONSOLE
266  pComp->Value(mkNamingAdapt(MouseAutoScroll, "MouseAutoScroll", 0 /* change default 33 to enable */ ));
267  pComp->Value(mkNamingAdapt(GamepadGuiControl, "GamepadGuiControl", 0, false, true));
268 #endif
269 }
int32_t MouseAutoScroll
Definition: C4Config.h:231
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
void Value(const T &rStruct)
Definition: StdCompiler.h:170
int32_t GamepadGuiControl
Definition: C4Config.h:230
C4PlayerControlAssignmentSets UserSets
Definition: C4Config.h:232

Here is the call graph for this function:

void C4ConfigControls::ResetKeys ( )

Definition at line 637 of file C4Config.cpp.

References C4PlayerControlAssignmentSets::Clear(), and UserSets.

638 {
639  UserSets.Clear();
640 }
C4PlayerControlAssignmentSets UserSets
Definition: C4Config.h:232

Here is the call graph for this function:

Member Data Documentation

int32_t C4ConfigControls::MouseAutoScroll

Definition at line 231 of file C4Config.h.

Referenced by C4Viewport::AdjustPosition(), and CompileFunc().

C4PlayerControlAssignmentSets C4ConfigControls::UserSets

Definition at line 232 of file C4Config.h.

Referenced by CompileFunc(), C4Game::InitPlayerControlUserSettings(), and ResetKeys().


The documentation for this class was generated from the following files: