Open main menu

Difference between revisions of "Virtual Keyboard"

14 bytes added ,  19:12, 15 October 2008
typos, use xml syntax highlighting
(typos, use xml syntax highlighting)
Line 1: Line 1:
'''WIP'''
'''WIP'''


The new ScummVM virtual keyboard hopes to provide a generalised implementation
The new ScummVM virtual keyboard hopes to provide a generalized implementation
of a virtual keyboard that will be usable on all of the small backends that
of a virtual keyboard that will be usable on all of the small backends that
require it.  
require it.  
Line 43: Line 43:
=== Keyboard bitmaps ===
=== Keyboard bitmaps ===


ScummVM's image manager can only decode 24-bit BMP images, so make sure you save your images in this format. You need to reserve a particular colour value to be used for transparency. By default the colour used for transparency is set to be #FF00FF, but if you want to use a different colour this can be specified in the configuration file.
ScummVM's image manager can only decode 24-bit BMP images, so make sure you save your images in this format. You need to reserve a particular color value to be used for transparency. By default the color used for transparency is set to be #FF00FF, but if you want to use a different color this can be specified in the configuration file.


=== XML configuration file ===
=== XML configuration file ===
Line 51: Line 51:
==== Example configuration file ====
==== Example configuration file ====


<pre>
<syntax type="xml">
<keyboard modes="normal,caps" initial_mode="normal" v_align="bottom" h_align="centre">
<keyboard modes="normal,caps" initial_mode="normal" v_align="bottom" h_align="center">
   <mode name="normal" resolutions="640x400,320x200">
   <mode name="normal" resolutions="640x400,320x200">
     <layout resolution="640x400" bitmap="normal_640x400.bmp" transparent_color="255,0,255">
     <layout resolution="640x400" bitmap="normal_640x400.bmp" transparent_color="255,0,255">
Line 86: Line 86:
   </mode>
   </mode>
</keyboard>
</keyboard>
</pre>
</syntax>


=== Inclusion in build ===
=== Inclusion in build ===
2,051

edits