Support and General Use > Plugins/Viewers
C64 Plugin
jensu:
hi folks!
i currently developing an c64 plugin and i need a bit of input regarding the keymappings. the plugin would be in the first place for targets with the necessary display size of 320x200 minimum (e.g. ipod video, meizu), but could later, if it works of course, scaled down to fit on other targets too. i own a meizu m6 and there are only 4 buttons (probably for up/left/right/down) and a touchpad (slice up/down and touch).
i've got the following ideas:
- to draw a virtual keyboard to make inputs in basic mode (attached a first pic of the sim with test drawing)
- to keep an array with all keys and the user can scroll (with the slider e.g.) to the one he wants to press, and touch to make the input (only one key visible, needs less space)
- to the joystick input (for in game use) the user can switch to (with special key select, or 2 buttons pressed at the same time) or this input is parallel the whole time with up/down/left/right (not sure about problems)
has someone maybe another better idea (best would be the connect an usb keyboard :) as far as i know the samsung chip in the m6 would support the usb 1.1 host mode, but not sure if the rest of the hardware would provide this too)?
and has someone already tried to write such a plugin?
i've read a lot over the last days about the c64, very interesting (it was my first computer) reminds me on the old times... :)
cheers
jens
GodEater:
Why not just use the already existing Rockbox virtual keyboard, instead of inventing your own ?
LambdaCalculus:
--- Quote from: GodEater on October 08, 2008, 07:16:10 AM ---Why not just use the already existing Rockbox virtual keyboard, instead of inventing your own ?
--- End quote ---
For the virutal keyboard, take a look at Zxbox and see how the virtual keyboard is handled in that. Also, you can have the graphics scaled to fit various sized screen... again, see how plugins like Zxbox, Doom, and Rockboy do it. (the video and Meizu are 320x240 by the way; thought I'd let you know. ;))
jensu:
--- Quote ---For the virutal keyboard, take a look at Zxbox and see how the virtual keyboard is handled in that.
--- End quote ---
ok, i'll check this. but the keyboard of the c64 includes some special keys like RUN/STOP, RESTORE,...
--- Quote ---Also, you can have the graphics scaled to fit various sized screen... again, see how plugins like Zxbox, Doom, and Rockboy do it.
--- End quote ---
ok thanks. i'll check this too.
--- Quote ---(the video and Meizu are 320x240 by the way; thought I'd let you know. Wink)
--- End quote ---
thanks :) but of course i already know this. the visible area of the c64 screen is exactly 320x200 without the border (except 24 row or 38 column modes, user for screen scrolling). maybe i'll add a line at the top and bottom to show the border color... just for the feeling ;)
first of all i've to get the thing running in stm mode (standard text mode) with the basic interpreter.
cheers
jens
--
thx --> thanks
bascule:
--- Quote from: jensu on October 08, 2008, 08:03:04 AM ---
--- Quote ---For the virutal keyboard, take a look at Zxbox and see how the virtual keyboard is handled in that.
--- End quote ---
ok, i'll check this. but the keyboard of the c64 includes some special keys like RUN/STOP, RESTORE,...
--- End quote ---
The virtual keyboard can be customised (http://www.rockbox.org/twiki/bin/view/Main/LoadableKeyboardLayouts), although you'll still be limited to single-character selections, so RESTORE would still be a problem, but you could substitute some fancy unicode character (à´² for instance) for it...
Navigation
[0] Message Index
[#] Next page
Go to full version