Keyboard support in simulator

Hi,

it would be handy to have keyboard support in the simulator for quick testing (eg scrolling around maps etc)

this would want to be something that didn’t increase the device final build size (unless you plan to support phones with flip out keyboards)

this might also help test multitouch on the simulator to some extent

eg

[lua]keyboard=require(“SimulatorKeyboard”)

keyboard.set(“UP”, Key.UP_ARROW)
keyboard.set(“DOWN”, Key.DOWN_ARROW)
keyboard.set(“JUMP”, Key.SPACE)

local function onKeyPress(k)
if(k.command==“UP” or k.key = Key.UP) then
print(“up test”)
end
end

keyboard:addEventListener(“keyboard”, on KeyPress)[/lua] [import]uid: 6645 topic_id: 3674 reply_id: 303674[/import]

Would be very useful! [import]uid: 9371 topic_id: 3674 reply_id: 11688[/import]

I agree, we should have this feature! It wouldn’t be that hard to implement, would it? It would make testing a LOT easier. [import]uid: 8782 topic_id: 3674 reply_id: 11829[/import]

I agree. I am building a platformer. I want to test the game before I hone the controls… ansca? [import]uid: 12267 topic_id: 3674 reply_id: 14180[/import]

Very good idea. Maybe we could combine the simulate accelerometer thread. [import]uid: 6279 topic_id: 3674 reply_id: 14976[/import]

I was sad to find this thread. I am dying without the ability to test jump, fire, etc…have to implement a bogus “if joystick angle” junk which makes determining climbing, etc harder to detect and control. PLEASE add this feature!! [import]uid: 21331 topic_id: 3674 reply_id: 41226[/import]

Why just the simulator, if this can be done in the runtime on the devices, BT keyboards, physical keyboards on some devices would be so much more useful for games and stuff.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 3674 reply_id: 41241[/import]

Edit : Read post wrong.

  • 1 [import]uid: 6981 topic_id: 3674 reply_id: 41288[/import]