Questions tagged [keyboard-input]

105 questions
0
votes
1 answer

Flutter app keyboardType: shows different keyboard inputs on simulator/real device

When i set keyboardType: TextInputType.numberWithOptions(decimal: true), my flutter app shows a comma in real device instead to show the point as in the simulator. The aim is to show the point so the app can run some calculation, that otherwise it…
Giovanni
  • 512
  • 2
  • 6
  • 23
0
votes
1 answer

Send output of Python program that receives keyboard input to terminal and to file

My program needs to receive keyboard input. It needs to print output to the terminal. It needs to also dump the same output to file. Here is the program: > cat test.py print(input("A man walks into a: ")) > /usr/bin/python3 test.py A man walks…
P i
  • 29,020
  • 36
  • 159
  • 267
0
votes
1 answer

WM_CHAR doesn't work when IsDialogMessage() is used in the main loop

I inserted IsDialogMessage() in my main loop, in order to the tab key work in the tab control(in my real code) but the WM_CHAR message stopped working. WM_KEYDOWN still is working but I was planning to deal with raw chars in WM_CHAR and key…
Jack
  • 16,276
  • 55
  • 159
  • 284
0
votes
2 answers

Asynchronous keyboard input on win32

I'm creating a simple 3D game on Windows 7 in C++ using the free version of the Havok physics engine. I want to use the WASD keys to move the character. The structure of the code is such that I need to capture this input asychronously; there is a…
paperbd
  • 153
  • 1
  • 11
0
votes
2 answers

Why is KbCheck in Psychtoolbox not registering keyboard input?

I'm trying to run a programme coded in Psychtoolbox-3 that should register a keypress. But when I run it, even just this section from the command window, it doesn't respond to the E, P keys (or any) and I have to stop the operation using Ctrl-C. I…
0
votes
1 answer

getch not reading keyboard input

Trying to get user input for a simple terminal game. I am on Mac OS. #include #include #include int main() { int ch; while (ch != 113) { ch = getch(); std::cout << ch << std::endl; …
ptan9o
  • 174
  • 9
0
votes
1 answer

How to use keyboard input parameter in docker-compose?

I need to start windows docker-compose include keyboard input properties. I use bat file: set /p u="user: " set /p p="pass: " docker-compose up and include docker-compose.yml: environment: - user=%u% - pas=%p% but it's not…
0
votes
1 answer

Dynamic array fill from keyboard input[C]

I've implemented a dynamic array data structure in C; and i'm now looking for a proper way to fill up my arrays from stdin. Using scanf() or fgets() seems not to be a good idea, since their buffer size is fixed at compilation time i would lose the…
terdop
  • 49
  • 6
0
votes
1 answer

int 16h/ah=1 repeatedly gives the same key press even after user presses another key

I am writing code of a game in assembly language where the movement of the dinosaur depends on the key pressed from user. I have implemented my code in a way that if the user presses space bar the program should terminate and the dinosaur should…
0
votes
1 answer

How do I make this PyQt5 character move on arrow key input?

I'm making a simple PyQt5 application and am curious about how to make the circle move with the arrow keys. I want it to move 5 pixels on every press. from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self,…
user11749439
0
votes
1 answer

JavaFX KEY_TYPED events are doing nothing

I'm making a video game with a simple inventory system. I'm trying to make it so that whenever you press the "Z" key it would show or hide the inventory GUI. I don't know why, but the KEY_TYPED key events aren't working. The KEY_PRESSED and…
0
votes
0 answers

Getting key code from pressing keyboards special keys (ex. macro keys on Razer Blackwidow Chroma)

I am new to c++ and developing windows desktop application. I want to catch the event when user presses a non-standard key on keyboard, ex. macro key on Razer Blackwidow Chroma. Currently I'm successfully catching all the other standard…
Starwave
  • 2,352
  • 2
  • 23
  • 30
0
votes
1 answer

KeyTyped Events Will Not Register

I am learning how to code keyboard input with a keylistener. I got it working with the following program: import java.awt.event.*; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; public class KeyboardInput extends…
0
votes
3 answers

C++, how to control program flow with keyboard input

I have a main routine that loops infinitely. By changing bool variables using keyboard input, I want to be able to control whether certain if{} statements within that loop are getting called. I found this thread: C non-blocking keyboard input, but…
Matt Munson
  • 2,903
  • 5
  • 33
  • 52
0
votes
1 answer

Keyboard input blocks in VSCode

Since yesterday, I have a problem when want to edit code in VSCode. Apparently, after changing focus within VSCode, say switching to the menu bar or a to different view and then coming back to the editor view, the cursor changed from the caret to a…
hellerim
  • 187
  • 7