mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-01 14:39:16 -06:00
Started organizing CS2/Protocol-related functions
This commit is contained in:
parent
46740027df
commit
ef6a5d7385
268 changed files with 5936 additions and 6093 deletions
|
|
@ -451,24 +451,16 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
|||
if (Keyboard.pressedKeys[Keyboard.KEY_UP] || Keyboard.pressedKeys[Keyboard.KEY_DOWN] || Keyboard.pressedKeys[Keyboard.KEY_LEFT] || Keyboard.pressedKeys[Keyboard.KEY_RIGHT]) {
|
||||
double vertical = calcRenderDelta(18.0d);
|
||||
if (Keyboard.pressedKeys[Keyboard.KEY_UP]) {
|
||||
Camera.pitchDirection = 0;
|
||||
Camera.pitchTarget += vertical;
|
||||
} else if (Keyboard.pressedKeys[Keyboard.KEY_DOWN]) {
|
||||
Camera.pitchDirection = 1;
|
||||
Camera.pitchTarget -= vertical;
|
||||
} else {
|
||||
Camera.pitchDirection = -1;
|
||||
}
|
||||
|
||||
double horizontal = calcRenderDelta(24.0d);
|
||||
if (Keyboard.pressedKeys[Keyboard.KEY_LEFT]) {
|
||||
Camera.yawDirection = 1;
|
||||
Camera.yawTarget -= horizontal;
|
||||
} else if (Keyboard.pressedKeys[Keyboard.KEY_RIGHT]) {
|
||||
Camera.yawDirection = 0;
|
||||
Camera.yawTarget += horizontal;
|
||||
} else {
|
||||
Camera.yawDirection = -1;
|
||||
}
|
||||
|
||||
Camera.clampCameraAngle();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue