HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Get Keyboard Input and How to Handle Focus - Java Game Development Extra 23

7,807 views October 26, 2018 14:42

Watch on YouTube
ChannelRyiSnow

Description from the creator

Previous: youtu.be/oVgrqcd9twU
Next: youtu.be/HvRi7aoSCKU

In this video, I'll explain how to let your program receive keyboard input and also explain how to set focus on a object.

Java Extra Playlist:
youtube.com/playlist?list=PL_QPQmz5C6WVDAle3owL…

#keyboardevent #gamedev #java

About this tutorial

RyiSnow published this 14:42 video tutorial on October 26, 2018. It has been watched 7,807 times on YouTube.

Channel
RyiSnow
Category
Education
Duration
14:42
Published
October 26, 2018
Views
7,807
Likes
144

Tags

Share

Further reading

  • Game for Beginners. Events. Keyboard input edu4java.com

    Events. Keyboard input. In this tutorial we will see how the events work and particularly how to obtain, from a java program, the information about keyboard events. We will also explain the concept and the use of the an…

  • windows - Handling keyboard and mouse input (Win API) - Game ... gamedev.stackexchange.com

    \$\begingroup\$ Indeed missing input is a problem, but the easiest solution would be to appropriately handle the focus/activation messages and work around it. Practically what you want to do is to pause the game when yo…

  • Keyboard input for a game in Java - Stack Overflow stackoverflow.com

    I'm writing a game in Java, right now it's Swing + JOGL - a JFrame with a GLCanvas. I handle input using keyPressed etc. events (jframe.addKeyListener(...)) and it doesn't seem to work properly: when I have 3+ keys down…

This tutorial in other languages