Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Discussions > HOME/CLRSCR key don't work...
2020-07-06 12:12
Flavioweb

Registered: Nov 2011
Posts: 442
HOME/CLRSCR key don't work...

I'm using an Asus X509 where the "home" key is mapped on num keypoad "under" number 7.
Enabling "NumLock" i can use keypad as joystick and it works.
Without "Numlock", if i enable "Keyboard debugging in statusbar", when i press the "home" button i see:
"KBD Debug: 65429, 0xff95 kp_home --- -----"
but nothing happen on emulated c64 screen.
Pressing shift+7:
"KBD Debug: 65463, 0xffb7, kp_7 S--- -----"
using "NumLock", then pressing 7, i get:
"KBD Debug: 65463, 0xffb7, kp_7 --- -2---"
and in these last two cases it seems that the diagonal movement of the joystick is activated..
What can i do to make my home/clr work?
2020-07-06 13:02
chatGPZ

Registered: Dec 2001
Posts: 11073
Did you somehow confuse this forum with the VICE bugtracker? =P
2020-07-06 13:23
Count Zero

Registered: Jan 2003
Posts: 1809
Heh, at least that diagonal movement of the joystick (top left for me) on emu start sounds somewhat familiar to me :)

Never occured to me it has something to do with keyboard mapping or numpad usage though. Got it activated on random setups and starts.
2020-07-06 13:31
chatGPZ

Registered: Dec 2001
Posts: 11073
SDL sees the actual Keys, so you must change the keymap to use "kp_home" instead of "home"
2020-07-06 17:19
JackAsser

Registered: Jun 2002
Posts: 1981
Since this is the official bug tracker it seems I'm wondering if anyone else have problem passing model-cmdline parameters to VICE? This used to work, but now I can't force start in NTSC etc. It always boots in PAL regardless of -model parameter.

Edit: -model is ignored if you also try to override vic-model and sid-model, which is the only sane thing to do. Nevermind this.
2020-07-06 23:33
Flavioweb

Registered: Nov 2011
Posts: 442
Quoting Groepaz
Did you somehow confuse this forum with the VICE bugtracker? =P

Since i know that the programmers involved in Vice's development have a lot of work to do ... before directly disturb them, i seek help from the community ...
Maybe it's a simple problem to solve and it's not a real bug.
If I can't find a solution ... then i sling on the bugtracker =)
Quoting Groepaz
so you must change the keymap to use "kp_home" instead of "home"

I probably need to read some docs to get rid of this ...
2020-07-07 00:31
chatGPZ

Registered: Dec 2001
Posts: 11073
That said... is this the GTK port on Windows?
2020-07-07 07:40
Flavioweb

Registered: Nov 2011
Posts: 442
Is the Gtk but on Linux.
2020-07-07 12:41
Compyx

Registered: Jan 2005
Posts: 631
I see the problem, that keyboard doesn't have a separate Home key and the numpad Home (KP_Home) can't be used because Shift+keypad-home returns KP_7.

Since you seem to have both a normal '/' and a '/' on the keyboard, I remapped Home to KP_Divide (change the line "Home 6 3 8" to "KP_Divide 6 3 8" in your vkm file). That way I can press the / on keypad for the emulated machine's HOME and shift+/ for CLR. Numlock-state doesn't interfere, and you can keep using the keypad for joystick emulation.
2020-07-07 12:59
Flavioweb

Registered: Nov 2011
Posts: 442
Quoting Compyx
change the line "Home 6 3 8" to "KP_Divide 6 3 8" in your vkm file

\o/
You fixed it again =)
Thanks a loooot!!!
2020-07-07 13:00
Compyx

Registered: Jan 2005
Posts: 631
You're welcome, nice to hear it works :)
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
jmin
Mike
JackAsser/Booze Design
Airwolf/F4CG
Matt
csabanw
MAT64
DeMOSic/HF^MS^BCC^LSD
psych
Guests online: 174
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 No Bounds  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 No Sprites  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Party Elk 2  (9.7)
2 Cubic Dream  (9.6)
3 Copper Booze  (9.5)
4 Rainbow Connection  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Onscreen 5k  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Nostalgia  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Webmasters
1 Slaygon  (9.7)
2 Perff  (9.6)
3 Morpheus  (9.5)
4 Sabbi  (9.5)
5 CreaMD  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.072 sec.