Processes keyboard and mouse input, managing player movement, camera state, and world interaction.
More...
#include <src/app/InputHandler.h>
Processes keyboard and mouse input, managing player movement, camera state, and world interaction.
◆ InputHandler()
| App::InputHandler::InputHandler |
( |
const Core::Vec3 & |
ObjStartPos | ) |
|
◆ AddFrameCount()
| void App::InputHandler::AddFrameCount |
( |
| ) |
|
|
inline |
◆ GetActiveThreads()
| int App::InputHandler::GetActiveThreads |
( |
| ) |
const |
|
inline |
◆ GetCamera()
◆ GetFrameCount()
| int App::InputHandler::GetFrameCount |
( |
| ) |
const |
|
inline |
◆ GetOrthoSize()
| float App::InputHandler::GetOrthoSize |
( |
| ) |
const |
|
inline |
◆ GetPlayer()
| Player * App::InputHandler::GetPlayer |
( |
| ) |
|
|
inline |
◆ GetScreenHeight()
| unsigned int App::InputHandler::GetScreenHeight |
( |
| ) |
const |
|
inline |
◆ GetScreenWidth()
| unsigned int App::InputHandler::GetScreenWidth |
( |
| ) |
const |
|
inline |
◆ GetTime()
| float App::InputHandler::GetTime |
( |
| ) |
const |
|
inline |
◆ GetViewProjectionMatrix()
| Core::Mat4 App::InputHandler::GetViewProjectionMatrix |
( |
| ) |
|
◆ IsFrustumCullingEnabled()
| bool App::InputHandler::IsFrustumCullingEnabled |
( |
| ) |
const |
|
inline |
◆ IsLMBClickedFirstTime()
| bool App::InputHandler::IsLMBClickedFirstTime |
( |
| ) |
const |
|
inline |
◆ IsNeighborCullingEnabled()
| bool App::InputHandler::IsNeighborCullingEnabled |
( |
| ) |
const |
|
inline |
◆ IsPerspective()
| bool App::InputHandler::IsPerspective |
( |
| ) |
const |
|
inline |
◆ IsSIMDEnabled()
| bool App::InputHandler::IsSIMDEnabled |
( |
| ) |
const |
|
inline |
◆ ProcessFirePreviewAndFire()
Raycasts into the world to preview, place, destroy, or inject heat into blocks.
- Returns
- RayHit Result of the raycast collision for UI/logic processing.
◆ ProcessInput()
| void App::InputHandler::ProcessInput |
( |
GLFWwindow * |
pWindow, |
|
|
ChunkManager & |
objChunkManager, |
|
|
float |
fDeltaTime |
|
) |
| |
Polls and processes raw input events to update global application state.
◆ ResetCounters()
| void App::InputHandler::ResetCounters |
( |
| ) |
|
◆ SetActiveThreads()
| void App::InputHandler::SetActiveThreads |
( |
int |
iCt | ) |
|
|
inline |
◆ SetDeltaTime()
| void App::InputHandler::SetDeltaTime |
( |
float |
fDelTime | ) |
|
◆ SetEnableSIMD()
| void App::InputHandler::SetEnableSIMD |
( |
bool |
bValue | ) |
|
|
inline |
◆ SetFlyMode()
| void App::InputHandler::SetFlyMode |
( |
bool |
bFlyMode | ) |
|
|
inline |
◆ SetFrustumCullingEnable()
| void App::InputHandler::SetFrustumCullingEnable |
( |
bool |
bValue | ) |
|
|
inline |
◆ SetLMBClickedFirstTime()
| void App::InputHandler::SetLMBClickedFirstTime |
( |
bool |
bValue | ) |
|
|
inline |
◆ SetMovementSpeed()
| void App::InputHandler::SetMovementSpeed |
( |
float |
fMoveSpeed | ) |
|
|
inline |
◆ SetNeighborCullingEnable()
| void App::InputHandler::SetNeighborCullingEnable |
( |
bool |
bValue | ) |
|
|
inline |
◆ SetOrthoSize()
| void App::InputHandler::SetOrthoSize |
( |
float |
fValue | ) |
|
|
inline |
◆ SetPerspective()
| void App::InputHandler::SetPerspective |
( |
bool |
bValue | ) |
|
|
inline |
◆ SetScreenWidth()
| void App::InputHandler::SetScreenWidth |
( |
int |
iWidth, |
|
|
int |
iHeight |
|
) |
| |
|
inline |
◆ UpdatePlayerPhysics()
| void App::InputHandler::UpdatePlayerPhysics |
( |
float |
fDeltaTime, |
|
|
const ChunkManager & |
objChunkManager |
|
) |
| |
Updates player movement and collision based on elapsed time.
◆ m_bEnableSIMD
| bool App::InputHandler::m_bEnableSIMD = true |
|
private |
◆ m_bEscClickedFirstTime
| bool App::InputHandler::m_bEscClickedFirstTime = false |
|
private |
◆ m_bFlyMode
| bool App::InputHandler::m_bFlyMode = false |
|
private |
◆ m_bFrustumCullingEnabled
| bool App::InputHandler::m_bFrustumCullingEnabled = true |
|
private |
◆ m_bLMBClickedFirstTime
| bool App::InputHandler::m_bLMBClickedFirstTime = false |
|
private |
◆ m_bMMBClickedFirstTime
| bool App::InputHandler::m_bMMBClickedFirstTime = false |
|
private |
◆ m_bNeighborCullingEnabled
| bool App::InputHandler::m_bNeighborCullingEnabled = true |
|
private |
◆ m_bPerspective
| bool App::InputHandler::m_bPerspective = true |
|
private |
◆ m_bRMBClickedFirstTime
| bool App::InputHandler::m_bRMBClickedFirstTime = false |
|
private |
◆ m_fDeltaTime
| float App::InputHandler::m_fDeltaTime = 0.0f |
|
private |
◆ m_fOrthoSize
| float App::InputHandler::m_fOrthoSize = 10.0f |
|
private |
◆ m_fTimer
| float App::InputHandler::m_fTimer = 0.0f |
|
private |
◆ m_iActiveThreads
| int App::InputHandler::m_iActiveThreads = 0 |
|
private |
◆ m_iFrameCount
| int App::InputHandler::m_iFrameCount = 0 |
|
private |
◆ m_iScreenHeight
| int App::InputHandler::m_iScreenHeight = 1080 |
|
private |
◆ m_iScreenWidth
| int App::InputHandler::m_iScreenWidth = 1920 |
|
private |
◆ m_objCameraPos
◆ m_pPlayer
| std::unique_ptr<Player> App::InputHandler::m_pPlayer |
|
private |
The documentation for this class was generated from the following files: