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

vice - x64 - keyboard mapping

986 views
Skip to first unread message

Vincent

unread,
Dec 11, 2012, 1:39:10 PM12/11/12
to
Hi All,

I try to define my keyboard mapping for joystick #1. But vice says :
(...)
Keyboard: Loading keymap `/home/moi/.vice/my_x11_sym.vkm'.
Keyboard: Error - Bad row/column value (-1/0) for keysym `space'.
Keyboard: Error - Bad row/column value (-1/2) for keysym `s'.
Keyboard: Error - Bad row/column value (-1/4) for keysym `u'.
Keyboard: Error - Bad row/column value (-1/6) for keysym `i'.
Keyboard: Error - Bad row/column value (-1/8) for keysym `z'.
(...)

What's wrong ?

Here my vkm file
+++
# VICE keyboard mapping file
#
# A Keyboard map is read in as patch to the current map.
#
# File format:
# - comment lines start with '#'
# - keyword lines start with '!keyword'
# - normal line has 'keysym/scancode row column shiftflag'
#
# Keywords and their lines are:
# '!CLEAR' clear whole table
# '!INCLUDE filename' read file as mapping file
# '!LSHIFT row col' left shift keyboard row/column
# '!RSHIFT row col' right shift keyboard row/column
# '!VSHIFT shiftkey' virtual shift key (RSHIFT or LSHIFT)
# '!SHIFTL shiftkey' shift lock key (RSHIFT or LSHIFT)
# '!UNDEF keysym' remove keysym from table
#
# Shiftflag can have the values:
# 0 key is not shifted for this keysym/scancode
# 1 key is shifted for this keysym/scancode
# 2 left shift
# 4 right shift
# 8 key can be shifted or not with this keysym/scancode
# 16 deshift key for this keysym/scancode
# 32 another definition for this keysym/scancode follows
# 64 shift lock
#
# Negative row values:
# 'keysym -1 n' joystick #1, direction n
# 'keysym -2 n' joystick #2, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key
# 'keysym -4 1' CAPS (ASCII/DIN) key
#

# Symbolic Mapping, US Layout, C64, X11

# +-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0|Bit 1|Bit 2|Bit 3|Bit 4|Bit 5|Bit 6|Bit 7|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0| DEL |Retrn|C_L/R| F7 | F1 | F3 | F5 |C_U/D|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 1| 3 # | W | A | 4 $ | Z | S | E | S_L |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 2| 5 % | R | D | 6 & | C | F | T | X |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 3| 7 ' | Y | G | 8 ( | B | H | U | V |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 4| 9 ) | I | J | 0 | M | K | O | N |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 5| + | P | L | - | . > | : [ | @ | , < |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 6|POUND| * | ; ] | HOME| S_R | = | A_UP| / ? |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 7| 1 ! |A_LFT| CTRL| 2 " |SPACE| C= | Q | R/S |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+

!CLEAR
!LSHIFT 1 7
!RSHIFT 6 4
!VSHIFT RSHIFT
!SHIFTL LSHIFT

#####################
# |Bit 0| DEL |Retrn|C_L/R| F7 | F1 | F3 | F5 |C_U/D|

BackSpace 0 0 8
Delete 0 0 8
Insert 0 0 16
Return 0 1 8
Right 0 2 8
KP_F4 0 2 8
Left 0 2 1
F7 0 3 8
F8 0 3 1
F1 0 4 8
KP_F1 0 4 8
F2 0 4 1
KP_F2 0 5 8
F3 0 5 8
F4 0 5 1
F5 0 6 8
KP_F3 0 6 8
F6 0 6 1
Down 0 7 8
Up 0 7 1

#####################
# |Bit 1| 3 # | W | A | 4 $ | Z | S | E | S_L |

numbersign 1 0 1
dollar 1 3 1
Shift_L 1 7 2
# shift lock
Caps_Lock 1 7 64

#####################
# |Bit 2| 5 % | R | D | 6 & | C | F | T | X |

percent 2 0 1
ampersand 2 3 1

#####################
# |Bit 3| 7 ' | Y | G | 8 ( | B | H | U | V |

apostrophe 3 0 1
grave 3 0 1
parenleft 3 3 1

#####################
# |Bit 4| 9 ) | I | J | 0 | M | K | O | N |

parenright 4 0 1

#####################
# |Bit 5| + | P | L | - | . > | : [ | @ | , < |

plus 5 0 0
minus 5 3 0
period 5 4 0
greater 5 4 1
colon 5 5 0
bracketleft 5 5 1
at 5 6 0
comma 5 7 0
less 5 7 1

#####################
# |Bit 6|POUND| * | ; ] | HOME| S_R | = | A_UP| / ? |

sterling 6 0 0
backslash 6 0 0
bar 6 0 8
asterisk 6 1 0
semicolon 6 2 0
bracketright 6 2 1
Home 6 3 8
Shift_R 6 4 4
equal 6 5 0
# Page down -> Arrow Up
asciicircum 6 6 0
asciitilde 6 6 0
Page_Down 6 6 8
slash 6 7 0
question 6 7 1

#####################
# |Bit 7| 1 ! |A_LFT| CTRL| 2 " |SPACE| C= | Q | R/S |

exclam 7 0 1
# underscore -> arrow left
underscore 7 1 0
End 7 1 0
Tab 7 2 8 /* Tab = CTRL */
ISO_Left_Tab 7 2 8 /* Shift + Tab = CTRL */
quotedbl 7 3 1
space 7 4 8
Control_L 7 5 8 /* Control_L = CBM */
Escape 7 7 8

#####################
# letters and numbers

0 4 3 0
1 7 0 0
2 7 3 0
3 1 0 0
4 1 3 0
5 2 0 0
6 2 3 0
7 3 0 0
8 3 3 0
9 4 0 0

A 1 2 1
B 3 4 1
C 2 4 1
D 2 2 1
E 1 6 1
F 2 5 1
G 3 2 1
H 3 5 1
I 4 1 1
J 4 2 1
K 4 5 1
L 5 2 1
M 4 4 1
N 4 7 1
O 4 6 1
P 5 1 1
Q 7 6 1
R 2 1 1
S 1 5 1
T 2 6 1
U 3 6 1
V 3 7 1
W 1 1 1
X 2 7 1
Y 3 1 1
Z 1 4 1
a 1 2 8
b 3 4 8
c 2 4 8
d 2 2 8
e 1 6 8
f 2 5 8
g 3 2 8
h 3 5 8
i 4 1 8
j 4 2 8
k 4 5 8
l 5 2 8
m 4 4 8
n 4 7 8
o 4 6 8
p 5 1 8
q 7 6 8
r 2 1 8
s 1 5 8
t 2 6 8
u 3 6 8
v 3 7 8
w 1 1 8
x 2 7 8
y 3 1 8
z 1 4 8

#
# Joystick 1
#
space -1 0
s -1 2
u -1 4
i -1 6
z -1 8

# Restore key mappings
Page_Up -3 0
Prior -3 1

+++
Regards.

Vincent

Somebody

unread,
Dec 15, 2012, 4:21:41 AM12/15/12
to
Il 11/12/2012 19:39, Vincent ha scritto:
> Hi All,
>
> I try to define my keyboard mapping for joystick #1. But vice says :
> (...)
> Keyboard: Loading keymap `/home/moi/.vice/my_x11_sym.vkm'.

For a long time, in VICE for Linux you do not use the vkm file to define
keyboard mapping for joystick. Instead, you go to Settings->Joystick
settings->Define keysets

Vincent

unread,
Dec 16, 2012, 9:31:53 AM12/16/12
to
I can't find "Define Keysets" menu. That's why I tried vkm file.
I don't see menu bar : I don't know if it's normal or not ? In vice
2.4, menu bar is removed ?
I get settings menu with right mouse button click.
In Joystick settings menu, I can see :
-> Joystick in port #1 -> (...)
-> Joystick in port #2 -> (...)
-> allow opposite directions
-> allow keyset joystick
-> swap joystick
-> Userport joystick adapter
-> Userport joystick adapter type -> (...)
-> Joystick in extra port #1 -> (...)
-> Joystick in extra port #2 -> (...)
-> Swap userport joysticks
but no "Define Keysets" item.

What I did wrong ?

Vincent

vincent....@gmail.com

unread,
Dec 19, 2012, 5:51:16 AM12/19/12
to
To be precise :

It is vice 2.4 on gentoo linux.

I can find menu bar and "define keysets" with Vice Windows. But I can not use Windows every day.

Vincent

Andreas Kohlbach

unread,
Dec 19, 2012, 6:30:22 PM12/19/12
to
I have it in Debian Linux. Once I started vice (x64) I click anywhere with
the right mouse key, then "Joystick setting" and in the sub menu there is
"Define keysets".
--
Andreas

Groepaz

unread,
Dec 21, 2012, 3:44:21 PM12/21/12
to
add USE="gnome" before your emerge, so you will get the GTK ui which has all
the fancy menus and dialogs that you dont get in the XAW port you are
looking at =)

--

http://www.hitmen-console.org http://magicdisk.untergrund.net
http://www.pokefinder.org http://ftp.pokefinder.org

Zum schwulsten Keks des Jahres wurde gewaehlt: Tuk


vincent....@gmail.com

unread,
Dec 25, 2012, 9:19:37 AM12/25/12
to gro...@gmx.net
Le vendredi 21 décembre 2012 21:44:21 UTC+1, Groepaz a écrit :
> add USE="gnome" before your emerge, so you will get the GTK ui which has all
>
> the fancy menus and dialogs that you dont get in the XAW port you are
>
> looking at =)
>
Hi,

Not the best solution for a pure KDE Box. But you are right, now I can see "define keysets" item both in menu bar and in right-click menu.
Anyway, better solution than using Windows...

Thank You Groepaz.

Vincent

Groepaz

unread,
Dec 25, 2012, 2:52:29 PM12/25/12
to
vincent....@gmail.com wrote:

> Le vendredi 21 dᅵcembre 2012 21:44:21 UTC+1, Groepaz a ᅵcrit :
>> add USE="gnome" before your emerge, so you will get the GTK ui which has
>> all
>>
>> the fancy menus and dialogs that you dont get in the XAW port you are
>>
>> looking at =)
>>
> Hi,
>
> Not the best solution for a pure KDE Box.

yeah well, perhaps you dont want to install all the gtk stuff just for
VICE.... however, i have yet to see a "pure" KDE box that didnt have it
installed anyway for one program or another :)
For most girls, talk DXPP, DYPP, Plasma, FLI, and rasterbars - its a real
winner.


Simon Becherer

unread,
May 6, 2013, 12:36:05 PM5/6/13
to
Hi there,

>>> add USE="gnome" before your emerge, so you will get the GTK ui
which has
>>> all
i use also kde.
could you explain me this?
i do not understand and i miss also this option,
is USE="gnome" a commandline option, or when and
where did i have to write this?

regards

simoN

Groepaz

unread,
May 8, 2013, 10:36:23 AM5/8/13
to
Simon Becherer wrote:

> Hi there,
>
> >>> add USE="gnome" before your emerge, so you will get the GTK ui
> which has
> >>> all
> i use also kde.
> could you explain me this?
> i do not understand and i miss also this option,
> is USE="gnome" a commandline option, or when and
> where did i have to write this?

if you are asking that question, i take it that you are probably not using
gentoo? (and then it doesnt apply at all, its a gentoo specific thing)

>
> regards
>
> simoN
>
>
>
> Am 25.12.2012 20:52, schrieb Groepaz:
>> vincent....@gmail.com wrote:
>>
>>> Le vendredi 21 dᅵcembre 2012 21:44:21 UTC+1, Groepaz a ᅵcrit :
>>>> add USE="gnome" before your emerge, so you will get the GTK ui which
>>>> has all
>>>>
>>>> the fancy menus and dialogs that you dont get in the XAW port you are
>>>>
>>>> looking at =)
>>>>
>>> Hi,
>>>
>>> Not the best solution for a pure KDE Box.
>>
>> yeah well, perhaps you dont want to install all the gtk stuff just for
>> VICE.... however, i have yet to see a "pure" KDE box that didnt have it
>> installed anyway for one program or another :)
>>

You do not really understand something unless you can explain it to your
grandmother
<Albert Einstein>


Simon Becherer

unread,
May 8, 2013, 11:12:32 AM5/8/13
to
Hi,

> if you are asking that question, i take it that you are probably not
using
> gentoo? (and then it doesnt apply at all, its a gentoo specific thing)


yes qou are right, i use opensuse 11.4evergreen
but i did not have the menue entry.
(Joystick settings->Define keysets )
so my question is how to get this menue entry,
or how to define the joystick keys?

regards,

simoN

Groepaz

unread,
May 9, 2013, 9:25:43 AM5/9/13
to
Simon Becherer wrote:

> Hi,
>
> > if you are asking that question, i take it that you are probably not
> using
> > gentoo? (and then it doesnt apply at all, its a gentoo specific thing)
>
>
> yes qou are right, i use opensuse 11.4evergreen
> but i did not have the menue entry.
> (Joystick settings->Define keysets )
> so my question is how to get this menue entry,
> or how to define the joystick keys?

if the menu isnt there then either vice has been compiled without joystick
support, or it is an very outdated version - in both cases the solution is
to compile a recent version with proper configuration options.
Der Prophet gilt nichts im eigenen LAN.


Simon Becherer

unread,
May 13, 2013, 10:08:06 AM5/13/13
to
Hi groepaz,

ok, i have had vice 2.3x now i changed to:

*** VICE Version 2.4 ***
OS compiled for: Linux
GUI compiled for: SDL
CPU compiled for: AMD64/x86_64
Compiler used: GCC-4.5.0
Current OS: *nix
Current CPU: AMD K8

(a suse rpm (binary))

now i got the menue entry for the joystick keysettings
:-))

but, on the other version i have had on left and on right
mouse klick all vice menues. now i did not get any menue when
i klick left or right mouse button, i got the menue by
pressing "f12".

so my new question, why did i not get the menues with the mouse?

regards,

simoN


Am 09.05.2013 15:25, schrieb Groepaz:
> Define keysets

Groepaz

unread,
May 13, 2013, 11:52:43 AM5/13/13
to
Simon Becherer wrote:

> Hi groepaz,
>
> ok, i have had vice 2.3x now i changed to:
>
> *** VICE Version 2.4 ***
> OS compiled for: Linux
> GUI compiled for: SDL
> CPU compiled for: AMD64/x86_64
> Compiler used: GCC-4.5.0
> Current OS: *nix
> Current CPU: AMD K8
>
> (a suse rpm (binary))
>
> now i got the menue entry for the joystick keysettings
> :-))
>
> but, on the other version i have had on left and on right
> mouse klick all vice menues. now i did not get any menue when
> i klick left or right mouse button, i got the menue by
> pressing "f12".
>
> so my new question, why did i not get the menues with the mouse?

because you are now using the SDL version, which has no GUI at all :=P
Wenn die Menschen nur ᅵber das sprᅵchen, was sie begreifen, dann wᅵrde es
sehr still auf der Welt sein.
<Albert Einstein>


0 new messages