A very common input device in computer games. It offers a more direct form of movement compared to directional input.
16
votes
1answer
3k views
Isometric rendering and picking?
I've been looking for a formula to plot (world->screen) and mouse pick (world->screen) isometric tiles in a diamond-shaped world.
The ones I've tried always seem to be, well, off.
What's the ...
29
votes
1answer
3k views
Mouse aim in an FPS
I would like to make a First Person Shooter and move the camera with the mouse. The problem is that when the cursor reaches the limits of the screen, the camera won't turn anymore. How can I keep the ...
3
votes
2answers
2k views
Java Slick2d - How to translate mouse coordinates to world coordinates
I am translating in my main class render. How do I get the mouse position where my mouse actually is after I scroll the screen
public void render(GameContainer gc, Graphics g) throws SlickException
...
2
votes
1answer
160 views
Turning to face mouse
Given three points on the same Y plane;
A ship
A point along the ships heading
A mouse cursor
How can I find which direction and angle the mouse cursor is from the ships heading?
I have a limited ...
6
votes
3answers
3k views
How do I simulate the mouse and keyboard using C# or C++?
I want to start develop for Kinect, but hardest theme for it - how to send keyboard and mouse input to any application. In previous question I got an advice to develop my own driver for this devices, ...
2
votes
3answers
1k views
How do I shoot bullets towards the mouse in a top down shooter?
I have a formula for pointing my main character of the game towards the mouse, and it gets the angle he needs to be turned to point towards the mouse. But how do I get the bullets from the gun to use ...