A very common input device in computer games. It offers a more direct form of movement compared to directional input.

learn more… | top users | synonyms

-2
votes
1answer
47 views

Irrlicht mouse input

I am trying to make a chess game at this moment, using Irrlicht. It will be a 3D Chess game but apart from most chess games it has one special quality: Free movement of the camera. The Chess game ...
1
vote
1answer
34 views

Trap mouse in SDL2

When using SDL 1.2 it the way to implement full screen or windowed applications with "no cursor" you did the following: SDL_ShowCursor(SDL_DISABLE); SDL_WM_GrabInput(SDL_GRAB_ON); See Trap mouse in ...
-1
votes
0answers
51 views

Mouse controlled camera bisbehaving. [closed]

I wish to implement a free roam camera that I can control with a mouse in OpenGL. Unfortunately, moving the mouse seems to rotate the camera incorrectly (along weird axes) when my camera is facing a ...
-2
votes
1answer
71 views

Cannot get 3D mouse coordinantes [closed]

I'm using viewport.project() to find my mouse position in 3D space. I have my projection, view and world matrices defined in the same area that they are used to draw the model. Code is below: NOTE: ...
-1
votes
0answers
33 views

XNA Threading Causes Mouse to Disappear?

I am getting strange behavior from IsMouseVisible when using threads. If I use sessionHandler.Stop() (my instance) from Game1 (the main game), then IsMouseVisible gets set to true, and the mouse will ...
2
votes
0answers
72 views

Converting Mouse Coords to 3d coords with Camera position

So I've looked at all the answers I can possibly find, and nothing seems to fit what I need exactly (because im bad at math). I'll explain what I have thus far: A camera with x,y,z, Pitch and Yaw ...
1
vote
2answers
90 views

Exclusive mouse movement with WM_INPUT

Microsoft seems to recommend using WM_INPUT for input. I want to only get relative mouse input and hide the mouse cursor all together for a short while (For gesture based input). However, using ...
1
vote
1answer
98 views

c# opentk - converting screen coords to world coords

I'm making a windows forms application with opengl view. I need to get the mouse coords converted to the opengl world coords. Well, my Y coord gets converted wrong. It's hard to explain, so here is ...
1
vote
0answers
53 views

Moving an object (pong paddle) along the x,y axis in 3d-space with mouse/touch

First of all: Sorry, my English isn't quiet good, I'm very new in 3D and I'am using JMonkeyEngine. What I would like to do?: A 3d pong game and I want to control the paddle with the mousecursor ...
0
votes
1answer
157 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, ...
6
votes
2answers
155 views

How do I convert a 2D movement (from mouse) to a displacement along a 3d axis?

I'm making a small 3D scene editor (that only allow to modify objects positions). Each object is draw with a 3d X/Y/Z axis : How it works : user choose an axis (X, Y or Z) by left clicking on it, ...
3
votes
1answer
131 views

How to emulate knob turning, based on x/y movement?

I'm doing a game where one component is that you turn a knob. I'm having trouble getting good "knob behavior". I know the current touch/mouse X,Y location, and I keep track of the previous X,Y ...
3
votes
2answers
266 views

How to determine mouse position outside stage, and center the cursor?

I was wondering if it is possible to have my flash game determine the position of the mouse, even when the cursor is not inside the stage. My movie clip should move horizontally between x = 100 and ...
0
votes
0answers
122 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, ...
9
votes
1answer
349 views

C#/XNA get hardware mouse position

I'm using C# and trying to get hardware mouse position. First thing I tryed was simple XNA functionality that is simple to use Vector2 position = new Vector2(Mouse.GetState().X, Mouse.GetState().Y); ...

1 2 3 4
15 30 50 per page