gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Keyboard

#38027 - Code-X - Sun Mar 20, 2005 7:40 pm

Which would be best, to make a keyboard image and load it, and have the character offsets hardcoded, or create the keyboard dynamicly.

#38028 - Mike - Sun Mar 20, 2005 8:02 pm

For a static keyboard, a combination of the two might be best. Load an image of a blank keyboard, and draw the characters over each key. That way you can implement different languages quickly.

It all depends on wether or not you want to allow the user to pick between different layouts and orientations, inwhich case dynamically generating the entire keyboard would be better.

#38029 - TJ - Sun Mar 20, 2005 8:15 pm

Might want to scroll down a bit, there is already a keyboard demo.

#38030 - Code-X - Sun Mar 20, 2005 8:20 pm

but thats just a bin.
I think the image way is best, for me anyway. i'm not to fussed about multi languages now.

I just wish i was better at C++ :P