Skip to main content

Questions tagged [keyboard]

Often the primary input for computer games. It boasts a very large versatility for direct input.

Filter by
Sorted by
Tagged with
0 votes
1 answer
226 views

Unreal Engine not taking any function key inputs

Unreal Engine utilizes f (function) keys. On a textfield on the config window e.g. "Editor Preferences -> General -> Keyboard Shortcuts -> Possess or ...
IsaacS's user avatar
  • 166
0 votes
0 answers
77 views

Spacebar not working consistently in Unity

Sometimes it works but sometimes it just doesn't. Maybe it has something to do with gravity or drag? ...
SailingWillem's user avatar
11 votes
5 answers
396 views

When translating controls into German, do I assume a German keyboard?

I am translating a video game into German, and I am wondering about the keys listed for the controls in the settings. On an American keyboard we have QWE, AD, and ZXC forming a square that the player ...
odduse_of_language's user avatar
0 votes
1 answer
169 views

Roblox Studio: Holding down LeftControl as an in-game keybind activates Roblox Studio Shortcuts

I've been making a small experience within Roblox Studio recently and wanted to add crouching into the game. I used my (already functioning) code for sprinting and modified it to make a crouch button ...
FlintandStone's user avatar
2 votes
1 answer
279 views

Cannot read value of type 'Vector2' from WASD KeyControl

I'm getting these error messages when I try to use Unity's new Input System package: Cannot read value of type 'Vector2' from control '/Keyboard/w' bound to action 'CharacterControls/Movement[/...
Fenrir's user avatar
  • 21
0 votes
1 answer
455 views

How to to make KeyListener do an action only once per press, even if the button is held down?

I'm trying to make a turn-based game where my character is allow to move in any direction, but only by as much as the dice rolled allows him. My problem is with how I'm using ...
Silver Lilies's user avatar
2 votes
2 answers
170 views

How to stop moving a sprite if the user is holding down the opposing moving key at the same time?

I am new to creating games with graphics, and I want to make a very hard game. I have the movement down, but it has a weird bug where it if the user presses down the opposing movement key (i.e. A is ...
Tiimzee's user avatar
  • 133
2 votes
1 answer
247 views

Detect if a key other than "this" key has been pressed

I'm wondering if there is a way to detect if the key being pressed is NOT matching a specific KeyCode. I tried using: ...
sammyiscuul's user avatar
0 votes
0 answers
174 views

Input axis defined but not working

I'm trying to use a simple code example to move a square object like this: ...
miltone's user avatar
  • 101
2 votes
2 answers
6k 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
0 answers
460 views

When did the Z - X buttons became standard?

I like platformers and I usually play them on a keyboard. For a while in the early 2010s, there wasn't quite a standard between my platforming keyboard controls. and my settings varied between a ...
Steven's user avatar
  • 903
0 votes
1 answer
80 views

Arrow key presses stop affecting game after pressing them 4-5 times

I'm trying to program a simple space shooter and my goal right now is that when the player presses down and holds a key, the ship accelerates to a max velocity. I have that somewhat; the problem is ...
Kevin Shaughnessy's user avatar
0 votes
1 answer
78 views

Is it useless to check whether a window is requested to be closed in full-screen mode?

Is it still necessary to check if the window is requested to be closed when I prepare a 1920x1080 window, in full-screen mode? How could the user close the window in full-screen mode, when you could ...
Đạt Phạm's user avatar
1 vote
1 answer
143 views

When detecting a keyboard key is released. What happened if the key is released at the end of the game loop?

When detecting a keyboard key is released. What happened if the key is released at the end of the game loop, how could the pollEvent function, which is at the top of the game loop, and it is a brand ...
Đạt Phạm's user avatar
0 votes
1 answer
425 views

Movement diagonally is not consistent

I am making my own game and this is the first time i'm doing so. so I hope you can forgive stupid mistakes. Im making this in C++ and using the SDL2 framework. Currently, I have a character on my ...
Saksham Goyal's user avatar

15 30 50 per page
1
2 3 4 5
11