Skip to main content

Questions tagged [mouse]

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

0 votes
1 answer
43 views

How to get around mouse entry signal stopping at first collision?

I have a grid of Area3D objects, and when nothing is around them, they handle the mouse_entered signal exactly as I would expect. The only issue is that I also use Area3D's on other game objects, like ...
Fred Etingen's user avatar
0 votes
2 answers
48 views

Unity Camera snaps back to camera mouse look after lerping to a point and rotating normally. Once mouse look is re-enabled it overrides and snaps back

I am trying to get the camera to rotate towards a location and position. Which works at the moment, but once it is done and re enables the mouse look script or bool in the script the mouse look ...
WestMansionHero's user avatar
0 votes
1 answer
136 views

How to achieve smooth camera dragging with the mouse in SDL2?

I am working on a 2D isometric perspective game using SDL2 and I would like to implement the ability to pan the map when the right mouse button is held down. I was wondering what is best way to set ...
lancen's user avatar
  • 33
0 votes
2 answers
189 views

Infinite scrolling with mouse

I know we're able to scroll a background image hardcoded or using awsd keys(or arrows) if they're pressed. But what about scrolling it with mouse movement? So I have a piece of panoramic image as a ...
Intice's user avatar
  • 31
1 vote
1 answer
830 views

How do I make a 3D cursor that follows the mouse in Godot?

I want to position a 3D object at my mouse cursor. How can I do that in Godot? In Unity, I'd use Camera.ScreenToWorldPoint.
idbrii's user avatar
  • 858
0 votes
1 answer
207 views

rotating a sprite with mouse cursor

i am learning how to make a 2d game using sdl and c++ and am currently trying to rotate the sprite so that is always facing the cursor, my game is set up with an entity component system, i have a ...
user21746705's user avatar
2 votes
1 answer
4k views

Triggering Enhanced Input Actions via inputs with modifier keys (Shift/Alt/Ctrl) in UE5

This question refers to the use of enhanced input in Unreal Engine 5. Whenever I say "modifier", I refer to modifier keys such as Shift, Alt, and Ctrl (rather than the Input Modifers such as ...
Simon Fischer's user avatar
0 votes
1 answer
196 views

Mouse input accumulates different number points at different frame rates

I'm working on a basic Vulkan renderer that's presently relying on Win32 raw mouse input for camera pitch and yaw. It's all very basic, but what I've noticed is that at higher frame rates, I'm ...
pdm's user avatar
  • 103
0 votes
1 answer
450 views

Unity detect drag to a game object

I want to detect when a UI object it dragged and released on top of a game object. The drags starts on a sprite on the canvas outside of the game object. I tried using ...
mustafa candan's user avatar
3 votes
1 answer
251 views

How Can I Match the Windows Cursor Latency with a DirectX Rendered Cursor?

My Win32/DirectX 11.1 project requires that I render the mouse cursor myself rather than use the system cursor. This is easy enough; however, I've found that there is a human-perceptible latency when ...
Matthew Elkins's user avatar
1 vote
2 answers
963 views

How to make a collision object within a viewport detect mouse inputs?

I am working on a 2D game with a spatial node (a 3d node) inside a viewport. Nodes within the viewport should be able to detect user input from what I can find online, but for some reason it doesn't ...
Qusk2's user avatar
  • 11
0 votes
0 answers
185 views

Player rotation using relative mouse movement instead of absolute

I'm working on a twin stick shooter where the player looks at the mouse cursor. Like most I use the absolute mouse position and the player's position to determine the direction and derive an angle. ...
mjx's user avatar
  • 1
1 vote
1 answer
261 views

How to implement a dial control that snaps to increments?

How can I implement snapping via code? I have this 2d circle that the players rotate via drag and it works like a rotating dial. The best way to describe what I wanted to achieve is similar to a clock ...
PeytonFarquhar's user avatar
0 votes
0 answers
263 views

Automatically determining the mouse sensitivity

I have a 3D game. The player can rotate the character left+right using the mouse, and move the character forward+backward using the keyboard. The problem is how to set the speed in which the mouse ...
Erel Segal-Halevi's user avatar
0 votes
0 answers
122 views

Having GUI on side rather than on game screen

How would I make it so that rather on the game screen the GUI is on the side of the screen and puts the game screen in its own little area so that its not covering part of the screen because right now ...
Zwei's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
18