Questions tagged [keyboard-input]

101 questions
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,051
  • 1
  • 16
  • 22
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,693
  • 3
  • 30
  • 50
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
  • 165
  • 4
0
votes
2 answers

on Linux, how do I find out which application/processid is receiving keyboard/mouse input?

I am working on a linux project. I am stuck at a point where I need to know which application/processid is receiving keyboard/mouse input. I mean that binding must be stored somewhere. Can somebody help me out? Edit 1: I am working on a…
0
votes
0 answers

How to get keyboard inputs and write letters in screen?

I am a students who want to make a program to get keyboard inputs and write letters in the screen. But I don't know how. Which language that I could get inputs and write? I could use python, and also can use c and c++ a little bit.
0
votes
0 answers

Execute task after a certain amount of time after PC start

For a museum installation I need to find a way (I guess with task sheduler) to do this scenario : 1 - Museum's staff start the pc (Windows 10) 2 - "Resolume" (a software) start at launch of the pc (Already achieve this, I've put it in the…
0
votes
1 answer

How to detect if any keyboard key other than a specific keyboard key has been pressed in C++?

I have the following code which works fine. int x = 0; int main() { while(true) { if (GetKeyState('A') & 0x8000 && x == 0) { Sleep(500); x = 1; } else if (GetKeyState('B') & 0x8000 && x ==…
Bari
  • 1
  • 1
0
votes
0 answers

Why does XGrabKeyboard() not register some keyboard inputs?

I'm a beginner in programmation with C++ and for two weeks I'm writting a script to play a space-shooter for 2 players on a same keyboard. For game display, I'm using NCURSES and for keyboard inputs, I'm using X11. For the start, I have a persistent…
K.Söze
  • 1
  • 1
0
votes
2 answers

Android Studio Emulator Upper Case B not typing

I'm using Android Studio 3.0.1 and building applications for SDK with following settings: flavorDimensions "default" compileSdkVersion 26 buildToolsVersion '26.0.2' defaultConfig { applicationId "com.logi3pl.wms.wmsmobile" …