Questions tagged [keyboard-input]
105 questions
2
votes
3 answers
Using WINAPI ReadConsole
I am trying to use the WINAPI ReadConsole() to wait for any keypress at the end of my Win32 console application.
CONSOLE_READCONSOLE_CONTROL tControl;
char pStr[65536];
DWORD dwBufLen = 1;
DWORD dwCtl;
tControl_c.nLength = sizeof(…

Jim Fell
- 13,750
- 36
- 127
- 202
2
votes
1 answer
Input from console window in game
when you want to input in console window and you hold a key down for a moment, the output is displayed but after a bit of some lag. for example, in any type of common text editors you would see the same result. is there anyway to get a direct input…

user963241
- 6,758
- 19
- 65
- 93
1
vote
3 answers
Python Paramiko - SSH keyboard-interactive authentication isn't working on remote server
Trying to log using Python 3.6 Paramiko to a remove server that propmts user and pass and expects keyboard input (per my understanding).
I reviewed several options in earlier thread, but can't get it to work in any way.
Using regular PuTTY SSH…

Tds18
- 55
- 7
1
vote
0 answers
Is there any way to identify two keyboards separately?
I've used the keyboard module in python to identify a keypress event as shown below.
import keyboard
while True:
if keyboard.read_key() == "k":
print("You pressed k")
break
Now I have 2 keyboards and I want to identify the…

KavG
- 169
- 1
- 12
1
vote
1 answer
HTML/CSS Single Key Input
I am developing the Snake game to practice my HTML/JS/CSS skills. I want to have a menu screen that lets the user choose the keyboard keys that control the left/right/up/down movements. I know that I could use an input tag and limit the maximum…

bmb
- 361
- 2
- 13
1
vote
1 answer
How to set the focus on a specific element in a uifigure?
I have an application where an SVG image is presented to the user, and they need to fill in two edit fields based on what is presented. Since the process needs to be repeated many times, I concluded it would be best for speed and efficiency if user…

Dev-iL
- 23,742
- 7
- 57
- 99
1
vote
1 answer
Issue in filling up dynamic array from keyboard input[C]
I've implemented my own dynamic array data structure in c and now i am looking for a way to fill them up without losing their dynamicity.
If i write something like
char str[ANY_CONSTANT];
fgets(str, ANY_CONSTANT, stdin);
The number of elements i…

terdop
- 49
- 6
1
vote
0 answers
What's the difference between undefined and unassigned virtual key codes?
I was wondering if there is any difference between undefined and unassigned virtual key codes and if there is any known reason of why they're seemingly spread randomly in the numeric sequence rather than grouped together for example at the end.
Is…

user7393973
- 2,270
- 1
- 20
- 58
1
vote
1 answer
How is KeyboardState.GetPressedKeys() organised?
I've looked around, does anyone know if KeyboardState.GetPressedKeys() (in Microsoft.Xna.Framework.Input) returns the keys in an organised collection (most recent first or last in the list) or some disorganised unpredictable list?

ClownFishUK
- 71
- 6
1
vote
0 answers
How to change an image depending on keyboard and mouse activitiy?
I tried to change the user availability between offline & online by changing the image of the user (red offline, green online).
I am using this code to change the user status from online to offline based on keyboard and mouse events:
public sealed…

Med Amin
- 95
- 1
- 6
1
vote
0 answers
NASM unexpected output when printing
I am new have very small problem with assembly NASM in linux. I made simple program for practice that when you put in the text, it adds simple decoration in form of stars. The expected output…

thebigcrocc
- 11
- 1
1
vote
1 answer
SFML Backspace Isn't Triggering More Than Once
so I'm working with SFML here, and I basically want to make a string out of entered letters. SFML has a built in thing to check if keys are pressed inside of a window, and it also has one to detect if it is something specific like a backspace, so I…

Daniel Sryera
- 11
- 1
1
vote
1 answer
How can `sdl2.SDL_GetKeyboardState` be used correctly?
I'm attempting to use the python library pysdl2 to construct an emulator. The library has been working well so far, however I've been having problems receiving keyboard input.
What I essentially needed to do is test if certain keys are pressed.…

Christian Dean
- 22,138
- 7
- 54
- 87
1
vote
0 answers
How can I hide Keyboard input in Android from Unity?
How can I hide Keyboard input in Android from Unity? can anyone please help?
Issue in Detail:
I can not hide keyboard input in android as hide mobile input works in iOS.
What I have tried till now:
if I use on edit, there is a problem that the…

sristy_poka
- 50
- 3
- 15
1
vote
0 answers
How to implement low latency keyboard/mouse input for UWP application?
I got stuck at this basic matter.
I can't find any other way to obtain input but through CoreWindow class (handling KeyDown/KeyUp/PointerMoved events or calling GetKeyState in the loop).
I thought that I had to deal with input device directly, but…

dodo951
- 438
- 4
- 8