PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

string things

Does anyone know if there is any good string manipulation libs for PPC and also what is the best way to make a virtual keyboard(ive seen one in GApidraw .. jojosip but this is wrapped in a dll i think)
In C++, just use std::string<_TCHAR>.

You could make your own keyboard easily. Look at the Quake source code for an example of a keyboard abstraction, and use two images (one with keys down and one with keys up) to lay out your keys. Keep a data structure with which screen area belongs to each key. You could make this completely skinnable if you wished.
BurningSheep · 10 Sep 2003, 12:22 UTC
mlepage wrote:
Keep a data structure with which screen area belongs to each key.


Take a look at the jojosip documentation, they use a very nice technique to map areas to keys.

Basicly what they do is use yet another image with coloured areas where the keys are, those colours get mapped to certain keys. So in that image where the 'A' key is there is a square with an RGB colour that stands for that key.

That way it's easily skinnable but also makes it very easy to place keys where you want them.
I did a really simple keyboard for PocketFrog. You can get the project from my site at www.sundialsoft.co.uk on the PocketFrog pages.