using computer keyboard to control button presses in simulator

a new class im just starting that will allow you to use your computer keyboard for button presses while testing your app in the simulator. with this new class you will be able to simulate some button presses from your keyboard. i’m just getting started so not sure how well the end results will be but here a video showing proof of concept.

in the video first i press the button using the mouse and you can see in the terminal window each time i press the button the word here shows in the window then you will see me move the mouse off the simulator window at that time i start using the keyboard and you will see the word here display with each keystroke.

[media]http://youtu.be/ykFgzNkhtFQ[/media]

This would be quite helpful at times. 

so for it works for “tap” working on “touch” now

proof of concept, controlling touch moved event from keyboard

now to start working it into a class

http://youtu.be/5lLcH9TIGiM

new video

shows me dragging ball with mouse then tap on ball to change color

then i tap on small white box in top corner to activate keyboard control

using w,a,s,d to drag ball & r to tap on ball

http://youtu.be/AhlkoYXzta8

i downloaded the jumping pony game for the code exchange added 4 lines of code and can now use keyboard to control the pony.

  1. require keyboardInput class

  2. add a keyboardEventListener function to the background

  3. add ‘a’ to move left

  4. add ‘d’ to move right

first i use the normal controls setup by the original programmer

then i activate keyboard control and use ‘a’ & ‘d’ to control the pony

http://youtu.be/Krqlf9L9zX8

This would be quite helpful at times. 

so for it works for “tap” working on “touch” now

proof of concept, controlling touch moved event from keyboard

now to start working it into a class

http://youtu.be/5lLcH9TIGiM

new video

shows me dragging ball with mouse then tap on ball to change color

then i tap on small white box in top corner to activate keyboard control

using w,a,s,d to drag ball & r to tap on ball

http://youtu.be/AhlkoYXzta8

i downloaded the jumping pony game for the code exchange added 4 lines of code and can now use keyboard to control the pony.

  1. require keyboardInput class

  2. add a keyboardEventListener function to the background

  3. add ‘a’ to move left

  4. add ‘d’ to move right

first i use the normal controls setup by the original programmer

then i activate keyboard control and use ‘a’ & ‘d’ to control the pony

http://youtu.be/Krqlf9L9zX8