Tagged Questions
0
votes
1answer
158 views
Moving the camera as in a first person shooter
I am trying to implement the movement of the camera with the mouse. The result I want to achieve is the same that you get when you move your aim in a first person shooter.
Here is the code I wrote, ...
-1
votes
2answers
1k views
C# XNA Handle mouse events?
I'm making a 2D game engine called Clixel over on GitHub. The problem I have relates to two classes, ClxMouse and ClxButton. In it I have a mouse class - the code for that can be viewed here.
...
10
votes
6answers
10k views
How to handle mouse input in XNA?
I am developing a card game in XNA.
Is there any OnClick event in XNA for objects?
I am trying to make cards move when the player clicks on them. In this project, there is a Sprite class that draws ...
0
votes
0answers
127 views
LWJGL Mouse Input [closed]
I have this mouse function in my LWJGL program:
public void mouseInput(){
int mouseX = Mouse.getX();
int mouseY = 600 - Mouse.getY();
int mouseDX = 0, mouseDY = 0;
int lastX = 0, ...
1
vote
2answers
122 views
What is a library for event-driven mouse and keyboard input in Java?
The title basically says it all.
The only thing to take into consideration is it needs to be cross platform.
5
votes
6answers
920 views
How do I identify mouse clicks versus mouse down in games?
What is the most common way of handling mouse clicks in games?
Given that all you have in way of detecting input from the mouse is whether a button is up or down.
I currently just rely on the mouse ...
1
vote
2answers
360 views
What is the best way to handle MouseEvents in AS3?
What is the best way to handle MouseEvents?
Should I add an event on each MovieClip I want to work with, or a general Event at a holder MovieClip (or even at the stage) with internal control from the ...
1
vote
2answers
426 views
Detecting a click on a tile
I'm making a simple tile-map system in LWJGL, and I'm trying to figure out how to detect if the mouse is clicking inside of a tile. So far no matter where I click it's always the same tile that is ...
7
votes
3answers
2k views
Is it possible to detect two different mice at the same time, and have their movements recorded seperately?
Im thinking of making a game that requires two mice to play. It needs to register the movement separately from one another. Is this possible? Or does the Windows architecture not allow for such ...
3
votes
2answers
695 views
Is there a universal method to send key or mouse input to any application from C#?
I need method or group of them to send signals to any application (browsers, games, et cetera) about mouse movement or key input.
I can easly retrieve an IntPtr to any process, but I don't know what ...
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, ...
0
votes
1answer
1k views
SFML - Moving a sprite on mouseclick
I want to be able to move a sprite from a current location to another based upon where the user clicks in the window. This is the code that I have:
#include <SFML/Graphics.hpp>
int main()
{
...
4
votes
1answer
1k views
Unity MouseWheel weapon change
I am trying to make a simple weapon change in Unity3D. The best way to do this is with the mouse scroll wheel, as far as I can see.
I googled on how to do this and found that I have to use ...