mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Add "Q" / "E" as freelook keybindings
To move the view up and down.
This commit is contained in:
parent
52482115e1
commit
3c7f223aa1
3 changed files with 9 additions and 3 deletions
|
@ -619,10 +619,10 @@ void VertexShaderManager::SetMaterialColorChanged(int index)
|
|||
nMaterialsChanged |= (1 << index);
|
||||
}
|
||||
|
||||
void VertexShaderManager::TranslateView(float x, float y)
|
||||
void VertexShaderManager::TranslateView(float x, float y, float z)
|
||||
{
|
||||
float result[3];
|
||||
float vector[3] = { x,0,y };
|
||||
float vector[3] = { x,z,y };
|
||||
|
||||
Matrix33::Multiply(s_viewInvRotationMatrix, vector, result);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue