Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchCameraInput Struct Reference

#include <imatch_renderer.h>

Public Attributes

float zoomSteps = 0.0f
 
float orbitX = 0.0f
 
float orbitY = 0.0f
 
bool pan = false
 
float panFromX = 0.0f
 
float panFromY = 0.0f
 
float panToX = 0.0f
 
float panToY = 0.0f
 
bool retarget = false
 
float retargetX = 0.0f
 
float retargetY = 0.0f
 
bool followBall = false
 
bool reset = false
 

Detailed Description

Mouse input for the 3D camera gathered over the view since the previous frame. Deltas are logical pixels; the renderer turns them into orbit angles and ground movement with the projection the user was looking at.

Member Data Documentation

◆ followBall

bool MatchCameraInput::followBall = false

Free camera orbits the moving ball, keeping the user's angle.

◆ orbitX

float MatchCameraInput::orbitX = 0.0f

Orbit drag in pixels (x turns around the target, y tilts).

◆ orbitY

float MatchCameraInput::orbitY = 0.0f

◆ pan

bool MatchCameraInput::pan = false

Pan drag: the ground under panFrom moves to panTo (pixels).

◆ panFromX

float MatchCameraInput::panFromX = 0.0f

◆ panFromY

float MatchCameraInput::panFromY = 0.0f

◆ panToX

float MatchCameraInput::panToX = 0.0f

◆ panToY

float MatchCameraInput::panToY = 0.0f

◆ reset

bool MatchCameraInput::reset = false

Returns the free camera to its default overview.

◆ retarget

bool MatchCameraInput::retarget = false

Re-target the free camera on the ground point under this pixel.

◆ retargetX

float MatchCameraInput::retargetX = 0.0f

◆ retargetY

float MatchCameraInput::retargetY = 0.0f

◆ zoomSteps

float MatchCameraInput::zoomSteps = 0.0f

Mouse-wheel steps (positive zooms in).


The documentation for this struct was generated from the following file: