Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Joystick emulation with keyboard doesn't work :-(

938 views
Skip to first unread message

Alexander Frank

unread,
Apr 7, 2008, 4:34:13 PM4/7/08
to
Hi there,

I have the following problem with the VICE emulator.
I don't have a joystick, so I have to use my laptop's keyboard to
emulate the joystick.

But using the keyboard as a joystick doesn't work. The only key that
works is the space bar (it seems to be the fire button).

Does anybody know this problem? Is there a fix available?

I compiled the emulator (version 1.22) by myself on an openSuSE 10.3 x86_64.

Best regards,
Alex

Joe Forster/STA

unread,
Apr 7, 2008, 4:45:36 PM4/7/08
to
And what are the joystick settings in your VICE.INI file (lines Joy*
and KeySet*)?

Alexander Frank

unread,
Apr 7, 2008, 4:59:24 PM4/7/08
to
Joe Forster/STA wrote:
> And what are the joystick settings in your VICE.INI file (lines Joy*
> and KeySet*)?

Well, I don't have a VICE.INI, but I have a .vice/vicerc in my home
directory.

Well, the settings of the Joy* and KeySet* lines are the following:

alex@butthead:~/.vice> grep Joy vicerc
JoyDevice1=0
JoyDevice2=2
alex@butthead:~/.vice> grep Key vicerc
KeymapSymFile="x11_sym.vkm"
KeymapPosFile="x11_pos.vkm"
KeymapSymDeFile="x11_sym.vkm"
KeymapIndex=0
KeySet1NorthWest=0
KeySet1North=0
KeySet1NorthEast=0
KeySet1East=0
KeySet1SouthEast=0
KeySet1South=0
KeySet1SouthWest=0
KeySet1West=0
KeySet1Fire=0
KeySet2NorthWest=0
KeySet2North=0
KeySet2NorthEast=0
KeySet2East=0
KeySet2SouthEast=0
KeySet2South=0
KeySet2SouthWest=0
KeySet2West=0
KeySet2Fire=0
alex@butthead:~/.vice>

Best regards,
Alex

Joe Forster/STA

unread,
Apr 7, 2008, 7:23:47 PM4/7/08
to
> Well, I don't have a VICE.INI, but I have a .vice/vicerc in my home
> directory.

Sorry; of course, files are named differently under Unix than
Windows... <:-)

> Well, the settings of the Joy* and KeySet* lines are the following:

It shows that no keys are defined at all as all keyboard codes are
zeros. For a test, define some _other_ keys (e.g. the WASD block) for
joystick emulation inside VICE, exit it and check these codes in
vicerc again; do they change into non-zero values? Now change them
back to the keys you want; do the keyboard codes change back to zeros?

(Perhaps, this is a known problem documented at http://vicekb.trikaliotis.net
. [...] Hmmm, doesn't seems so...)

Alexander Frank

unread,
Apr 7, 2008, 11:46:05 PM4/7/08
to
> Sorry; of course, files are named differently under Unix than
> Windows... <:-)

No problem :-)

>> Well, the settings of the Joy* and KeySet* lines are the following:
>
> It shows that no keys are defined at all as all keyboard codes are
> zeros. For a test, define some _other_ keys (e.g. the WASD block) for
> joystick emulation inside VICE, exit it and check these codes in
> vicerc again; do they change into non-zero values? Now change them
> back to the keys you want; do the keyboard codes change back to zeros?
>

Hmm, I couldn't find anything to change the keyset, so I installed
WinVICE in my VMWare W2K, defined a keyset and copied the lines from
VICE.ini to the configuration file under Linux.

The KeySet* lines are now the following:

KeySet1NorthWest=20
KeySet1North=21
KeySet1NorthEast=22
KeySet1East=36
KeySet1SouthEast=49
KeySet1South=48
KeySet1SouthWest=47
KeySet1West=34
KeySet1Fire=29


KeySet2NorthWest=0
KeySet2North=0
KeySet2NorthEast=0
KeySet2East=0
KeySet2SouthEast=0
KeySet2South=0
KeySet2SouthWest=0
KeySet2West=0
KeySet2Fire=0

JoyDevice1=0
JoyDevice2=2

It doesn't work :-(

> (Perhaps, this is a known problem documented at http://vicekb.trikaliotis.net
> . [...] Hmmm, doesn't seems so...)

I'll check this knowledge base. Maybe I can find any hints.

Best regards,
Alex

Fabrizio Gennari

unread,
Apr 8, 2008, 3:56:38 PM4/8/08
to
Alexander Frank ha scritto:

>> Sorry; of course, files are named differently under Unix than
>> Windows... <:-)
>>
>> It shows that no keys are defined at all as all keyboard codes are
>> zeros.

VICE 1.22 for Linux has a menu entry Options->Joystick settings->Define
keysets. Use that.

P.S. swapping between Windows' vice.ini and Linux's vicerc won't work.
The numbers associated to each key are different

Alexander Frank

unread,
Apr 8, 2008, 11:37:36 PM4/8/08
to
Hi Fabrizio,

thanks for your feedback.

> VICE 1.22 for Linux has a menu entry Options->Joystick settings->Define
> keysets. Use that.

Hmmm... maybe this is my problem? Well, I double checked the menu, but I
can't find "Define keysets" within the menu "Joystick settings" in the
Linux version of VICE... :-(

Could it be that the reason is my german environment?
Well, I'll try to use the option "--disable-nls" for the ./configure
script and then, I'll compile it again.

Best regards,
Alex

Alexander Frank

unread,
Apr 8, 2008, 11:47:49 PM4/8/08
to

> Could it be that the reason is my german environment?
> Well, I'll try to use the option "--disable-nls" for the ./configure
> script and then, I'll compile it again.
>
Hmm.. now havin the english menus, but "Joystick settings->Define
keysets" is still missing...

Any ideas?

Best regards,
Alex

Lars Haugseth

unread,
Apr 9, 2008, 5:25:08 AM4/9/08
to

* Alexander Frank <spamm...@t-online.de> wrote:
>
> > Could it be that the reason is my german environment?
> > Well, I'll try to use the option "--disable-nls" for the ./configure
> > script and then, I'll compile it again.
> >
> Hmm.. now havin the english menus, but "Joystick settings->Define
> keysets" is still missing...

If you run configure with the --enable-gnomeui parameter, you will get
a Gnome interface. You can then find the joystick settings in the
menu "Settings->Joystick settings", where you can choose some predefined
sets or customize your own.

--
Lars Haugseth

"If anyone disagrees with anything I say, I am quite prepared not only to
retract it, but also to deny under oath that I ever said it." -Tom Lehrer

Alexander Frank

unread,
Apr 9, 2008, 12:05:43 PM4/9/08
to
Lars Haugseth wrote:

> If you run configure with the --enable-gnomeui parameter, you will get
> a Gnome interface. You can then find the joystick settings in the
> menu "Settings->Joystick settings", where you can choose some predefined
> sets or customize your own.
>

running configure with the --enable-gnomeui parameter fixed the problem :-)

Now I have the missing menu button :-)
The keymap definition works fine, also the joystick emulation is working :-)

Thank you very much & best regards,
Alex

0 new messages