   Two questions based on getting mouse X,Y and W,A,S,D movement
  The title pretty much says it all. I want to start making a small zombie survival mini game and I was wondering how to get the mouse X,Y and how movement systems that use W,A,S,D in video games work. TY in advanced!   
  That would depend on things like programming language, platform, libraries, etc.   ;  C++ and the game would be on a PC. I would be using DirectX.   ;  Generally speaking, you would process window messages for input. For example messages like WM_KEYDOWN and WM_KEYUP for keyboard input and messages like WM_MOUSEMOVE, WM_LBUTTONDOWN, WM_RBUTTONDOWN for mouse input.   ;  Well i mean could I find the X, Y of where the mouse is within the window?   ;  You could call a function like GetCursorPos() to find the current coordinates of the mouse; however, generally you would use mouse messages to handle mouse input and the cursor position is included in mouse messages like WM_LBUTTONDOWN or WM_MOUSEMOVE.   ;  If you are using direct input I would check out this post on gamedev.   ;  I'd recommend direct input over windows handling.   ; Not even Microsoft recommends using DirectInput for handling the keyboard and mouse.Quote:Overall, using DirectInput offers no advantages when reading data from mouse or keyboard devices, and the use of DirectInput in these scenarios is discouraged.;  Direct input is very painful and you don't really get any benefit as described above.   