Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
104 views

I’m working on an Android project where I need to handle user input events (KeyEvent, MotionEvent) consistently. Sometimes these events come from real user input (keyboard/touch), and other times I ...
Rohan Pande's user avatar
0 votes
3 answers
93 views

I am building a simple game where the ground moves when a user pressed a space bar once. My problem is that the ground does not move if I do not press a space bar. I want the ground to move from the ...
Jesse's user avatar
  • 15
1 vote
3 answers
358 views

My operating system is Arch Linux and my desktop environment uses Wayland. I've been trying to make a small renderer in the terminal which moves the camera around using WASD. I've disabled canonical ...
user29944582's user avatar
0 votes
1 answer
180 views

I'm working on an Android app that needs to send key events (simulate keyboard input) using the INJECT permission. However, when trying to do so, I receive an error indicating that my app doesn't have ...
TRESOR MALO's user avatar
0 votes
0 answers
42 views

I use the following code to report key events and custom definitions. Bundle bundle = new Bundle(); bundle.putString("CustomLog", "TEST" + System.currentTimeMillis()); ...
Politchi Li's user avatar
3 votes
2 answers
98 views

Description: Hello everyone, I'm working on a Java application where I use the java.awt.Robot class to simulate keyboard input. It works fine for most characters, but I'm encountering an issue when ...
JamesB's user avatar
  • 529
0 votes
1 answer
51 views

I'm trying to build a program that recognizes keystrokes and also the exact process that sent it, so the source. For example, if I press the character 'g' on my keyboard, it should recognize the ...
martinotecco's user avatar
0 votes
0 answers
46 views

I want to configure Firebase dynamically so that anyone who uses my project can use the configurations in their own google-services.json files. Here's what I've done: I put the google-services.json ...
Politchi Li's user avatar
0 votes
0 answers
48 views

I’m trying to program the game "Gravity Guys", in this game the player runs forward and can change the gravity only when it touches surface. There is an enemy player following him and if he ...
Ste Michelini's user avatar
0 votes
0 answers
61 views

I am writing code for a personal project that takes data from a CSV file, and passes it to an editable JCombobox that then displays names of airports. Having done that - I want to write the quality of ...
Michael Mathews's user avatar
0 votes
1 answer
24 views

Surprisingly, this simply code: <!DOCTYPE html> <html> <body> <h1> Keyboard input test</h1> <script> document.addEventListener('keydown', function(event) { ...
Karen Fisher's user avatar
1 vote
3 answers
278 views

I'm trying to detect when a button's action is triggered (which could be through clicking or something else like the keyboard) while the "shortcut" key is pressed. I couldn't find a way to ...
Zyxl's user avatar
  • 124
0 votes
0 answers
53 views

In my implementation, I utilize the onKeyPressed event to invoke the letterTyped function within the Pane situated at the top of the FXML file. Whenever a key is typed, my expectation is to have the ...
Peter Miller's user avatar
2 votes
1 answer
251 views

I am developing a project for a Portable data terminal, which is a smartphone with Android OS and a built-in infrared scanner. The IR scanner works as follows: the scanned data (for example, the ...
Anastasiia 's user avatar
1 vote
1 answer
59 views

I am very new to JavaFX, and I am trying to work with KeyEvents and KeyCodes. Researching on how to use these properly, I looked at this webpage for how to do that. I (somewhat) copied it's code to ...
Tiimzee's user avatar
  • 194
0 votes
0 answers
165 views

When I run my Qt application on a desktop, the virtual keyboard works fine, but when I run it on an embedded Linux device, the backspace key doesn't work at all. I have installed an event filter to ...
jap jap's user avatar
  • 344
0 votes
0 answers
73 views

I am developing a game for Android. Want to add game controller support.I read documentation how to add it. https://developer.android.com/develop/ui/views/touch-and-input/game-controllers, but nothing ...
Ольга Акиньшина's user avatar
0 votes
1 answer
94 views

I am having a problem with rotating an animated image on key. I do not quite understand big-bang functions and have lost hope. This is my code: (require 2htdp/image) (require 2htdp/universe) ;; Found ...
user22638798's user avatar
1 vote
1 answer
209 views

I would like to select all the text to the end by adb input keyevent --longpress 114 input keyevent --longpress 59 input keyevent 93 To select all text to the end but it didn't work. Maybe Ctrl+Shift+...
Name F's user avatar
  • 21
1 vote
0 answers
208 views

I am facing an issue with inconsistent KeyEvents while using barcode scanners on two different Android devices. The first device is a Cipherlab scanner running Android 9, and the second one is a Zebra ...
Jim Lu's user avatar
  • 21
1 vote
1 answer
1k views

The Focus widget in Flutter can detect and handle KeyEvents. However, it will trigger on both key down and up events (so it calls its assigned callback twice for each press). Given a KeyEvent, how can ...
Microbob's user avatar
  • 882
0 votes
1 answer
250 views

In my code, when detecting an arrow key the character will move accordingly. This is done through a Timer and TimerTask to schedule "movements" of the character. However, when another key is ...
Zhe Hin Yap's user avatar
0 votes
0 answers
26 views

I created a shadow root in the content script of a Chrome extension, and in the shadow root I created a container with id 'container' containing three elements, namely 'parent-1', 'parent-2', and '...
Lerner Zhang's user avatar
  • 7,278
-1 votes
1 answer
73 views

I'm working on an app, where I show a question and a person can answer by using the arrow keys for yes/no, which loads a new question and so on. This works well, but I'm trying to implement a ...
Ulala Olala's user avatar
0 votes
0 answers
96 views

I'm trying to learn JavaFX by making a Pong game. I want my third scene to have KeyEvents for paddle movement, but everything I find has it in the initial scene and I can't figure out how to utilize ...
River Lockhart's user avatar
0 votes
1 answer
176 views

Based on my understanding, the getCharacter() method of KeyEvent should return a char type. For example, if I have to check if the typed key is a digit, I can just use Character.isDigit(e.getCharacter(...
Osama El-Ghonimy's user avatar
0 votes
1 answer
292 views

I am trying to rotate a cube by pressing 'z' on my keyboard using vispy. However, I would like that cube to rotate everytime I press 'z', which is not the case right now : it only rotates the first ...
Emilie Lemaire's user avatar
1 vote
0 answers
64 views

The intended application is a simple typing practice program, for reference. At present, things work fine in Windows, I've not tried on macos, but under Linux I can't handle source texts with accents. ...
John Allsup's user avatar
  • 1,292
1 vote
2 answers
78 views

HTML: <form id="form"> <div class="form-group" id="df2"> <input type="text" class="form-control" name="atribut[]" ...
Floppydisx's user avatar
1 vote
1 answer
5k views

I'm trying to 'move' in my 10x10 grid by updating the activeCellId state. However none of the methods I tried works. This is my code. const GridCells: React.FC = () => { const gridArray = [......
Fear4Haunt's user avatar
0 votes
1 answer
216 views

I was tasked with making a code that picks up when a key is pressed and counts the number of characters typed. I decided to use var regex=/[a-zA-Z0-9]/;, but to my surprise, when I pressed Enter, ...
hellwraiz's user avatar
  • 531
1 vote
0 answers
70 views

We have a remote screen sharing option in our android app for Android TV devices. We use OEM API to trigger some of the key and button events by passing the constants defined in the android.view....
basil_369's user avatar
0 votes
1 answer
463 views

My program plays music when I press the space bar. How to stop music when the s key is pressed? import pygame, sys from pygame.locals import QUIT def main(): pygame.init() #Intalise ...
mohd12's user avatar
  • 1
1 vote
1 answer
44 views

I want that when I press and hold space button that the spaceship's bullets shoot every 2 seconds. Now if I press and hold space button the spaceship shoots lots of bullets in one line. How can I fix ...
Uri Singh's user avatar
0 votes
3 answers
278 views

is there a way to send a key down and key up event in Lua? Is it possible? (This is my first time asking a question here, I'm so nervous '~') I want it to help you auto-press the key without you ...
Leo Cheng SC's user avatar
0 votes
2 answers
322 views

I'm trying to programmaticaly send a custom key event (function keys, media keys) but it only works in interpreted mode, not in compiled code. I tried using the following answer: emulate media key ...
Stephan Burlot's user avatar
0 votes
0 answers
40 views

I have two application one is a web application and the onther one is a console application, the Console application generates a Data and that Data must be transfered to the webapplication, i tried to ...
Aymen Abdessmad's user avatar
8 votes
1 answer
2k views

I am trying to build logic based on detecting user keyboard events (e.g., when a user presses the backspace in a textfield). This seems to work on my builds for Android devices, but is not working for ...
bensmith87's user avatar
0 votes
1 answer
239 views

How can I detect comma or dot key event for a editText? I've tried using setOnKeyListener, but setOnKeyListener can detect digits, delete, done buttons not detecting comma and dot. I want to detect ...
abdlkdr's user avatar
  • 192
0 votes
0 answers
74 views

Why doesn't in detect my pressed Key? Nothing happens. The program doesn't tell me when i press w and it doesn't stop when i press escape. main class: package awd; import java.awt.*; import java.awt....
Fabi0011's user avatar
1 vote
0 answers
236 views

I've made a similar question, but was explained bad. I deleted it and I'm making this one. Basically my task is to press a button on an android emulator, this button will copy a text, I need this text ...
Pietro Leon's user avatar
1 vote
0 answers
27 views

Can the ability to detect keys that have been pressed due to software, hardware, drivers, etc. be used as specific modules or implemented with Python? ex) import @@@ @@@.pressed_key() >>> [&...
fg0a9dasds's user avatar
1 vote
1 answer
1k views

keypress.h #ifndef KEYPRESS_H #define KEYPRESS_H #include <QObject> #include <QKeyEvent> class keypress : public QObject { Q_OBJECT public: explicit keypress(QObject *parent = ...
TGanesh's user avatar
  • 33
2 votes
0 answers
477 views

I'm trying to develop React Native Expo app on Zebra Scanner OS android. I want to listen pressed F Keys or any physical keyboard events on main screen without text input. So far I tried couple of npm ...
Ryan Kafkaur's user avatar
0 votes
1 answer
105 views

I'm trying to write some code that checks if any keys are pressed while we have a GUI with appJar and it's not focused. So if the "v" key is pressed it will write something to the console ...
Ale's user avatar
  • 17
0 votes
1 answer
184 views

i'd like to handle keystroke combination of shift + copy. what i am doing is checking if keystrokes shift + cmd + c are all keydown, which is effectively shift + copy. var keyPressed = {}; window....
1192805's user avatar
  • 1,126
2 votes
4 answers
3k views

I have a button that does something when clicking on it with mouse. I want the same method to also be triggered when pressing on your keyboard's up arrow key. <button @click="doSomething()&...
seyet's user avatar
  • 1,160
-1 votes
2 answers
535 views

My task is to allow users to type arabic text in my input field, however they are unable to do so due to a function named isNumber() in the code. Without the isNumber() function, the users are able to ...
Mohamed Rifaath's user avatar
0 votes
1 answer
49 views

I'm using this python code https://gist.github.com/seankmartin/f660eff4787b586f94d5f678932bcd27#file-keyboardpress-py to get time for keyboard events. It's working well, but I need to get KEYDOWN and ...
Yulya Makeyeva's user avatar
-2 votes
1 answer
186 views

Coding is easy for Keyboard event handling by Kotlin if write the following code override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean { return when (keyCode) { KeyEvent....
Jun Takeshita's user avatar

1
2 3 4 5
30