I edited it so that it uses WASD to move (strafing) but I can't figure out how to do mouse aiming (currently uses left and right arrow keys to aim). I was trying to make it where the old MouseX is subtracted from the current MouseX but that stops working when the mouse reaches the edge of the screen. Can anyone help with this?
Offtopic: It seems you can only move the cursor relative to the screen instead of the application? (Try moving the mouse to the X of DisplayWidth/2 and Y of DisplayHeight/2 and notice it is not the center of the application, but the position on the screen of the same X, Y)