Important changes to questions
We’re making some changes to Mbed Questions. From 10th December 2019 this site will be archived and new questions should be asked on our new forum site. Until that date you can continue to reply to existing questions here but can’t ask new questions.
1 week, 5 days ago.
question about keyboard
Hi, I want to use mbed to emulate USB keyboard in order to play game. How about comparing with normal keyboard?
1 week, 4 days ago.
The advantage to use
USBkeyboard is that you can program a sequence of designed instructions. If you would like to play game like normal joy con or keyboard, I think buy a good keyboard would be better :D.
1 week, 4 days ago.
In addition to the USBKeyboard that Desmond mentioned there is also a USBMouseKeyboard which allows you to make the mbed look like both a mouse and a keyboard.
Generally a PC will allow two different keyboards to be used at the same time so you can have both the mbed and a normal keyboard plugged in.
So if you have a particularly long or time critical mouse movement or key sequence you want to do repeatedly then you can configure the mbed to perform this and then use a normal keyboard for everything else. The simple way to trigger this would be a button on the mbed but there is one other trick you can use. If you have two keyboards plugged in then the num lock, scroll lock and caps lock LEDs on them are common between both keyboards. Press caps lock on one keyboard and the light comes on on both. This means that your mbed pretending to be a keyboard will be notified when you press caps lock on your normal keyboard, this gives you a method to trigger the mbed without a physical button connected to it. Turning caps lock on and off in your game may have an impact on the controls and so probably isn't a good choice. But I've not seen any modern game that cares about the scroll lock status so that key is certainly available to signal things and for most games num lock is also usable.
You need to log in to post a question