Questions tagged [arrow-keys]

The up, down, left, and right keys on a keyboard, also known as "cursor keys".

The arrow keys are the up, down, left and right keys on a keyboard, also known as "cursor keys". They are primarily used to move the cursor around on-screen text, and are also often used to move player characters in games.

They behave as normal keys for keyboard events, returning both a Unicode value and a code.

References

363 questions
-1
votes
1 answer

How to navigate through inputs that are in a table with arrow keys?

I am building a table using dataTables.net and dynamically created data (using dataTables.net is probably not relevant). A few of my table cells are inputs. How do I navigate through these inputs with the arrow keys? Thanks in advance
laiello
  • 21
  • 4
-1
votes
2 answers

Is there a way to keep drawing a square with one turtle while, at the same time, moving another turtle with the arrow keys?

I am trying to move a drawing slowly across the screen as I move another turtle with the arrow keys. The problem is that my code only makes the drawing move across the screen, not allowing me to move the other turtle with the keys. I have tried…
Matt
  • 134
  • 10
-1
votes
1 answer

Adding virtual keys

Can we add virtual keys to a snake game website, like that website we can only play on the laptop because the phone doesn't have arrow up, arrow down, etc keys. So I am asking can we add virtual keys to this website ->…
PrashoonB
  • 1
  • 1
-1
votes
2 answers

Problems making pygame target image (scope) move with arrow keys

When we run our pygame's code, our target scope image will NOT move, but our do robots generate. We are trying to use our arrow keys to move them and I included all of our code. Commented out under our newest trial code for moving are two other…
Srishti G
  • 3
  • 3
-1
votes
1 answer

I'm trying to get a blue square to move around in the canvas by using arrow keys?

const WIDTH = 640; const HEIGHT = 480; const PLAYER_SIZE = 20; const REPAINT_DELAY = 50; const EASY_DELAY = 1750; const MODERATE_DELAY = 1000; const HARD_DELAY = 750; const MAX_BLOCKS = 100; var context; var DX; var DY; DX and DY are the position…
-1
votes
1 answer

How to catch multiple key in c#

How can I catch the process that will be done when the user presses the Left-Up-Right-Down direction arrow keys respectively on the Windows Form Application respectively?
Mz.Chris
  • 1
  • 4
-1
votes
2 answers

What are the unicodes for alt + ?

I am considering creating a custom keyboard layout. The keys are mapped to unicode. One kind of shortcut that I often use is the alt + or alt + . How can I get the same effect with a unicode?
asiegf
  • 99
  • 1
-1
votes
1 answer

Arrow ratings in JTable

I have a project in JAVA using MySQL database. My database has "Answers" table and I need to allow users to vote (+1 or -1) if answer is good or bad. User can vote only once for one answer. EDIT: Here is my code for display answers for choosen…
-1
votes
1 answer

Up and Right arrows on Mac adds an extra comma and dot

I'm using MacBook Pro late 2011 with Yosemite 10.10.2 Today, all of the sudden, the right arrow adds a comma most of the times when I press it and the up arrow adds a dot most of the times. Things I tried: Reset PRAM settings Use guest account and…
user56929
  • 1
  • 1
-1
votes
3 answers

producing output of arrow keys

As we know that arrow keys produces two outputs 224 and 77 or 80 or 72 or 75. Code 1:- int main() { int ch,ch1; ch=getch(); ch1=getch(); printf("%d\n",ch); printf("%d",ch1); } When you press up keyit displays 224 72 Code…
zee
  • 188
  • 2
  • 2
  • 9
-1
votes
2 answers

VB.net move between textboxes by keyboard arrow

I Have VB.net application form with 10 horizontal text boxes . I need to move between text boxes with right And Left Keyboard Arrow . Also I need Make textBoxes Format To Be Like This 0.00
user3077945
  • 13
  • 2
  • 9
-1
votes
1 answer

VBS syntax error with errorlevel

Today I decided to start making a simple batch OS and it has working great so far login and create account are finished but then I tested it again and I keeping getting a syntax error at :login -- the location of the error levels @echo off …
-1
votes
1 answer

Unpleasant little square locomotion (Moving a JComponent in a JPanel with the keys)

Ok, I'm trying to reinvent the wheel and program a snake game only with Swing and AWT and things that come with Java by default. But, far before that, I'm learning how to MOVE a square on the window. Cutting the mimimi, here's the thing: I have a…
Ericson Willians
  • 7,606
  • 11
  • 63
  • 114
-2
votes
1 answer

How can I get a div that moves using arrow keys to not be able to go off screen?

I want to make a pong game using HTML, CSS and javascript. I started with making a player and I got it to move using the arrow keys but it can go outside the screen which creates the sidebar. I want it to not be able to go off the screen. Here is…
kika
  • 1
  • 2
-2
votes
1 answer

I made some simple pygame code and it doesn't work

I wrote a program using all pygame modules. Some of it looks like this: #assigning keys to the key press library keys = pygame.key.get_pressed() #Key movements if keys[pygame.K_w] or keys[pygame.K_UP]: c_one_y -= speed if keys[pygame.K_s]…
Sean
  • 23
  • 5
1 2 3
24
25