maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   New xkbd layout for DOSBox, Basilisk II, etc. (https://talk.maemo.org/showthread.php?t=17182)

OSEmuTech 2008-02-26 02:45

New xkbd layout for DOSBox, Basilisk II, etc.
 
1 Attachment(s)
I worked on a xkbd layout for DOSBox, Basilisk II, etc. today. I know xkbd doesn't work well on OS 2008, but maybe this will be useful for those still running OS 2006 and 2007. You can change the font and font size if desired by editing the line:

font verdana-12:bold|fixed

http://fkwjcw.bay.livefilestore.com/...osbox_xkbd.gif

As usual, launch with pipe unless you want to replace your /usr/share/xkbd/en_GB.qwerty.xkbd

xkbd -k allkeys.xkbd | yourprogram

Let me know of any suggestions.

Pushwall 2008-02-26 02:59

Re: New xkbd layout for DOSBox, Basilisk II, etc.
 
Thanks for incorporating the function keys too. I'll give it try.

OSEmuTech 2008-02-26 03:03

Re: New xkbd layout for DOSBox, Basilisk II, etc.
 
I look forward to hearing how it works. I made sure all standard keys were included and paired each key with it's shifted key. I just need to somehow fit Home/End, Insert/Page Up, Delete/Page Down in yet another row.

I was able to get Ctrl-F1 working even under OS 2008.

CTRL-F1 Show the keymapper configuration screen


setasai 2008-02-26 04:53

Re: New xkbd layout for DOSBox, Basilisk II, etc.
 
Any idea about mapping these to the hardkeys on the N810? That's like the #1 drawback. Everything else is working like a charm.

Addison 2008-02-26 16:48

Re: New xkbd layout for DOSBox, Basilisk II, etc.
 
Greetings again OSEmuTech!

Okay, first response.

Have you thought about having the function keys being displayed like that in a home computer? I was thinking of possibly launching a 2nd Xkbd that would cover the top, unused portion of the screen as well, covering up the toolbar applets and such. I'm not sure of this, but I think there's enough room to have all 12 function keys to fit in that area.

I haven't tried this myself, so it's not really a suggestion. I mean, it might look good. It might not. Just thought I'd throw out that idea and hear your opinions on it.

Well, here's ArnimS's post earlier in regards about the whole xkbd -geometry -1 -1 weirdness:

Quote:

Problem is the "minimize" button (>>) shifts the keyboard position by a relative to "minimize" it - needs to use an absolute.

from xkbd.c

if(iMode==1)
{
XResizeWindow(display, win, xkbd_get_width(kb), xkbd_get_height(kb));
XMoveWindow(display,win,xorgpos+worg-xkbd_get_width(kb), yorgpos+horg-xkbd_get_height(kb));
}
else
{
xkbd_resize(kb, an_event.xconfigure.width*0.52*wkbscale, an_event.xconfigure.height*1.2*hkbscale );
worg=xkbd_get_width(kb);
horg=xkbd_get_height(kb);
XResizeWindow(display, win, xkbd_get_width(kb), xkbd_get_height(kb));
if(xorgpos==0 || yorgpos==0)
{
xorgpos=wscr-worg+1;
yorgpos=hscr-horg+1;
}
XMoveWindow(display,win,xorgpos, yorgpos);
xkbd_repaint(kb);
}

Not sure how that'd be fixed - maybe cme can look at it?
I'm no programmer, but it seems, mathematically at least, that if you removed the highlighted green "+1"s that Xkbd could be launched properly without the need for negative values and breaking the Minimize/Maximize feature.

If that doesn't work. Would it be possible to "roll" over these values?

Something to the effect of
xkbd - geometery +801+481 or
xkbd - geometery +32769+32769

I don't have Xkbd installed now, but do you kind of understand this concept? It would still be an absolute value and perhaps it wouldn't crash the program using a method such as this.

Anyway, I like the new layout much better than your first post. You nailed the Number keys and it looks much more functional.

Good job dude! :D

delaroca 2008-03-01 10:07

Re: New xkbd layout for DOSBox, Basilisk II, etc.
 
Quote:

Originally Posted by OSEmuTech (Post 147754)
As usual, launch with pipe unless you want to replace your /usr/share/xkbd/en_GB.qwerty.xkbd

xkbd -k allkeys.xkbd | yourprogram

Let me know of any suggestions.

When launching it, the following warning is printed,

Code:

Sorry -- server Keyboard map doesn't contain either 2 or 4 KeySyms per Keycode -- unsuported
For BasiliskII, it would be nice to have support for the Macintosh Keyboard "option" and "command" keys. "Option" uses either "Meta_L" or "Meta_R", while "Command" uses either "Alt_L" or "Alt_R", I believe.

-- Denis

ArnimS 2008-03-04 15:03

Re: New xkbd layout for DOSBox, Basilisk II, etc.
 
I built a new OS2008 version of xkbd. Might be more reliable than the older build. This version strips out the docs and manuals, and adds my bottom xkbd layout file as well as Addison/OSEmuTech's vertical layout.

http://pupnik.de/xkbd.html

Pushwall 2008-03-04 15:45

Re: New xkbd layout for DOSBox, Basilisk II, etc.
 
Oh my yes....gotta try this out. Thank you!

tobiasj 2008-03-04 19:31

Re: New xkbd layout for DOSBox, Basilisk II, etc.
 
Quote:

Originally Posted by ArnimS (Post 150744)
I built a new OS2008 version of xkbd. Might be more reliable than the older build. This version strips out the docs and manuals, and adds my bottom xkbd layout file as well as Addison/OSEmuTech's vertical layout.

http://pupnik.de/xkbd.html

I have tried this version and well, not having tried the previous version in 2008 I can't say if it is better or not, but this one doesn't work for me. It crashes a lot and it tends to repeat the same key over and over again no matter what key your actually tapping.

Install was nice and easy though...

-John


All times are GMT. The time now is 11:12.

vBulletin® Version 3.8.8