[Scummvm-devel] Keyboard & mouse

David Given dg at cowlark.com
Wed Aug 6 08:40:10 CEST 2003


Further to my quest to get write a new ScummVM backend...

I'm having trouble getting the mouse pointer drawn. set_mouse_cursor() is 
being called, and I'm constructing a 8-bit paletted pixmap from the data it's 
giving to me, but for some reason it's always appearing as a black square. 
The palette *is* the same as for the main screen, right? The transparent 
colour is 0xFF? Is the data pointer it gives me persistent, or should I copy 
the data?

I also having a bit of trouble with the keyboard --- the main thing is that I 
can't seem to find a list of the available key codes anywhere. The closest 
I've found is the SDL port's mapKey() function, which seems to tell me that 
F1 is 315, the keypad is mapped to ASCII numbers, the cursor keys are, um, 
the same that SDL uses internally... is there a definitive list anywhere?

And I've had a quick look at the audio system. I'm sorry to say it, but intent 
is going to get on really badly with ScummVM's internal mixer. It would much 
prefer a higher-level interface where ScummVM talks to intent directly 
whenever it wants to play something. I can pretty much guarantee that intent 
will support whatever features ScummVM wants... can this be done, or will it 
require huge redesign of ScummVM's audio system?

-- 
+- David Given --McQ-+ "[One shot of the Death Star's superlaser has
|  dg at cowlark.com    | enough power] to send Marty McFly to the Big Bang
| (dg at tao-group.com) | and back 1.4x10^29 times." --- William Clifford
+- www.cowlark.com --+ 





More information about the Scummvm-devel mailing list