Questions tagged [input]
Input is data provided to a game via player interaction (through the mouse, keyboard, gamepad, et cetera).
653 questions
2
votes
1
answer
97
views
Can't Get Unity New Input System To Work
For context I am very much a beginner.
I have been trying to get the player to move using Unity's new Input System following this tutorial. It's only a year old and others in the comments seemed to ...
0
votes
0
answers
79
views
0
votes
0
answers
61
views
How to code marking dead stones in Go board game. Getting user input outside of update
This is a follow-up question to coding capturing in Go. I have that successfully working. I am pretty sure that I am not reposting, this is a completely different question I have it just happens to be ...
0
votes
1
answer
124
views
Null reference exception when accessing ActionMap stored in a singleton
I'm a beginner developer and I'm currently working on a 3D game project with a third person view.
When I implemented my first ActionMap into my character controller,...
1
vote
1
answer
211
views
Translating Meta's .haptics file frequency and amplitude to Unity's left and right motor strength
Meta has an application called Meta Haptics Studio that allows you to create detailed haptic timeseries data. It outputs this data in the following format as amplitude and frequency information:
...
0
votes
2
answers
126
views
GameInput::GetCurrentReading error
I finally created an account. I've started coding MS GameInput, and have a problem retrieving keystrokes. I think I have a linking error but can't be sure I just ...
1
vote
0
answers
55
views
Unity Button ID is -1
I have a UI Document on a gameobject. while hovering on a UI button when i press mouse 4 on my logitech g502 it gives me an error. I did this by accident when i pressed mouse 4 instead of left ...
1
vote
1
answer
149
views
How to prioritize and display correct UI for multiple actions triggered by the same input?
In my Unity game, the "Interact" action is used for multiple tasks like opening doors and grabbing/dropping objects. However, there are scenarios where the player has an object in their ...
11
votes
5
answers
456
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 ...
0
votes
1
answer
204
views
Cannot read value of type 'Vector3' error in Input System package
I'm a Unity newbie. This time, I'm trying to make the Player operable with an Xbox controller using PlayerInput. However, when I control the player, I get these errors:
Errors that occurred:
[20:35:...
0
votes
0
answers
110
views
SDL2 Events how to avoid monolithic control statement?
I'm using SDL2 in my game engine and I'm trying to figure out how I can prevent having a monolithic control statement like this:
...
0
votes
1
answer
84
views
Chain cutting swipe input skips over chains
I have a game where you need to cut chains, similar to Cut The Rope. I want to develop it for Android, so I need mobile controls.
For detecting swipes I used ...
1
vote
2
answers
754
views
How do i get key input using c#
To change key configuration i need to get the key input but after looking around i havent found any way of doing that using c#.The other way is using the Gd programming language.but i cant do that as ...
0
votes
1
answer
115
views
Drag-select multiple units code Godot 3.5
The code from where I based my script.
The code I have has the these 2 problems:
The visual area for the player to see what unit are going to be selected doesn't work as intended, if I start dragging ...
2
votes
1
answer
130
views
How to make redirected player movement respond to same key?
I have a 2d game (Godot 4) with different rooms with portals to go between them, and some portals redirect the direction of the player while still holding the same key. I have that working so far, but ...
0
votes
1
answer
190
views
Why can't I press buttons after re-enabling the UIDocument?
I have this UI with buttons that should be clickable whenever the UIDocument is enabled, but for some reason whenever I disable and then re-enable the UIDocument (in the second code block), the ...
0
votes
2
answers
5k
views
Unity New Input System - What Is The Correct Way To Check If Any Button From An Action Map Was Pressed?
Good Morning All,
I am using Unity's New Input System. I have an Action Map created called 'Menu'.
Currently, this is how I check for specific button presses.
...
0
votes
1
answer
125
views
How to use WASD to move camera between a collection of position marker objects?
How can I move one camera between two positions along the cardinal directions?
Using W/A/S/D keys, I want to move the camera from one empty object to another on the xy plane. Those empty objects ...
0
votes
1
answer
106
views
Input axis from keys
I'm making a game engine from scratch and I'm currently handling the inputs. The low level handling is done, and now I would like to provide higher level input listeners, such as axis.
I've failed to ...
0
votes
1
answer
1k
views
Is it possible to detect if the cursor is over a GameObject with a specific tag?
I've tried quite a few things, but none of them have worked reliably. Here is what I'm currently using:
...
0
votes
1
answer
293
views
How do I play a video in Unity using input text
I'm trying to play a video when a text command is typed.
What I expect to happen is the user inputs "play video 1" in an input text box, and after the command is sent via a button press, the ...
1
vote
1
answer
132
views
Where can I find a reference to the possible arguments of AddBinding?
In the new input system of Unity, the function AddBinding gets a string as an input. In
this link there are several examples, such as "<Mouse>/delta" or "<Keyboard>/alt"...
1
vote
1
answer
487
views
How to create a default binding for an InputAction?
When I have an InputAction in a Unity component, like this:
...
0
votes
1
answer
304
views
Accepting user input in continous game loop
I have a game loop that simply iterates through every entity and calls entity.update()
...
0
votes
1
answer
940
views
How do I know currently active TMP_InputField in unity
I have a list of TMP_InputFields on my canvas like OTP boxes. I made it in such a way that the cursor automatically moves to the next box once the user types something in the current box. I am ...