![]() |
DDraceNetwork Documentation
|
#include <controls.h>
Public Types | |
| enum class | EMouseInputType { ABSOLUTE , RELATIVE , AUTOMATED } |
Public Member Functions | |
| float | GetMinMouseDistance () const |
| float | GetMaxMouseDistance () const |
| CControls () | |
| int | Sizeof () const override |
| void | OnReset () override |
| void | OnRender () override |
| void | OnMessage (int MsgType, void *pRawMsg) override |
| bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) override |
| void | OnConsoleInit () override |
| virtual void | OnPlayerDeath () |
| int | SnapInput (int *pData) |
| void | ClampMousePos () |
| void | ResetInput (int Dummy) |
| Public Member Functions inherited from CComponent | |
| virtual void | OnStateChange (int NewState, int OldState) |
| virtual void | OnInit () |
| virtual void | OnShutdown () |
| virtual void | OnWindowResize () |
| virtual void | OnUpdate () |
| virtual void | OnNewSnapshot () |
| virtual void | OnRelease () |
| virtual void | OnMapLoad () |
| virtual bool | OnInput (const IInput::CEvent &Event) |
| virtual bool | OnTouchState (const std::vector< IInput::CTouchFingerState > &vTouchFingerStates) |
| Public Member Functions inherited from CComponentInterfaces | |
| virtual void | OnInterfacesInit (CGameClient *pClient) |
| virtual | ~CComponentInterfaces ()=default |
Public Attributes | |
| vec2 | m_aMousePos [NUM_DUMMIES] |
| vec2 | m_aMousePosOnAction [NUM_DUMMIES] |
| vec2 | m_aTargetPos [NUM_DUMMIES] |
| EMouseInputType | m_aMouseInputType [NUM_DUMMIES] |
| int | m_aAmmoCount [NUM_WEAPONS] |
| int64_t | m_LastSendTime |
| CNetObj_PlayerInput | m_aInputData [NUM_DUMMIES] |
| CNetObj_PlayerInput | m_aLastData [NUM_DUMMIES] |
| int | m_aInputDirectionLeft [NUM_DUMMIES] |
| int | m_aInputDirectionRight [NUM_DUMMIES] |
| int | m_aShowHookColl [NUM_DUMMIES] |
Static Private Member Functions | |
| static void | ConKeyInputState (IConsole::IResult *pResult, void *pUserData) |
| static void | ConKeyInputCounter (IConsole::IResult *pResult, void *pUserData) |
| static void | ConKeyInputSet (IConsole::IResult *pResult, void *pUserData) |
| static void | ConKeyInputNextPrevWeapon (IConsole::IResult *pResult, void *pUserData) |
Additional Inherited Members | |
| Protected Member Functions inherited from CComponentInterfaces | |
| class CGameClient * | GameClient () const |
| class IClient * | Client () const |
| class IKernel * | Kernel () const |
| class IEngine * | Engine () const |
| class IGraphics * | Graphics () const |
| class ITextRender * | TextRender () const |
| class IInput * | Input () const |
| class IStorage * | Storage () const |
| class CUi * | Ui () const |
| class ISound * | Sound () const |
| class CRenderTools * | RenderTools () const |
| class CRenderMap * | RenderMap () const |
| class IConfigManager * | ConfigManager () const |
| class CConfig * | Config () const |
| class IConsole * | Console () const |
| class IDemoPlayer * | DemoPlayer () const |
| class IDemoRecorder * | DemoRecorder (int Recorder) const |
| class IFavorites * | Favorites () const |
| class IServerBrowser * | ServerBrowser () const |
| class CLayers * | Layers () const |
| class CCollision * | Collision () const |
| int64_t | time () const |
| float | LocalTime () const |
| class IHttp * | Http () const |
|
strong |
| CControls::CControls | ( | ) |
| void CControls::ClampMousePos | ( | ) |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
| float CControls::GetMaxMouseDistance | ( | ) | const |
| float CControls::GetMinMouseDistance | ( | ) | const |
|
overridevirtual |
Called to let the components register their console commands.
Reimplemented from CComponent.
|
overridevirtual |
Called on mouse movement, where the x and y values are deltas.
| x | The amount of change in the x coordinate since the last call. |
| y | The amount of change in the y coordinate since the last call. |
| CursorType | The type of cursor that caused the movement. |
Reimplemented from CComponent.
|
overridevirtual |
Called when receiving a network message.
| Msg | The message type. |
| pRawMsg | The message data. |
Reimplemented from CComponent.
|
virtual |
|
overridevirtual |
Called when the component should get rendered.
The render order depends on the component insertion order.
Reimplemented from CComponent.
|
overridevirtual |
Called to reset the component. This method is usually called on your component constructor to avoid code duplication.
Reimplemented from CComponent.
| void CControls::ResetInput | ( | int | Dummy | ) |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
| int CControls::SnapInput | ( | int * | pData | ) |
| int CControls::m_aAmmoCount[NUM_WEAPONS] |
| CNetObj_PlayerInput CControls::m_aInputData[NUM_DUMMIES] |
| int CControls::m_aInputDirectionLeft[NUM_DUMMIES] |
| int CControls::m_aInputDirectionRight[NUM_DUMMIES] |
| CNetObj_PlayerInput CControls::m_aLastData[NUM_DUMMIES] |
| EMouseInputType CControls::m_aMouseInputType[NUM_DUMMIES] |
| vec2 CControls::m_aMousePos[NUM_DUMMIES] |
| vec2 CControls::m_aMousePosOnAction[NUM_DUMMIES] |
| int CControls::m_aShowHookColl[NUM_DUMMIES] |
| vec2 CControls::m_aTargetPos[NUM_DUMMIES] |
| int64_t CControls::m_LastSendTime |