laptop keyboard problem!

Discuss Chaos Strikes Back for Windows and Linux, an unofficial port of Chaos Strikes Back to PC by Paul Stevens, as well as CSBuild, an associated dungeon editor.

Moderator: Zyx

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Adamo
Italodance spammer
Posts: 1534
Joined: Fri Apr 22, 2005 11:59 am
Location: Poland
Contact:

laptop keyboard problem!

Post by Adamo »

help!
I just bought a new laptop, and I was shocked when I noticed that its keyboard is almost useless for playing DM. It doesn`t have a proper num-keyboard. I mean it does, but spread through function key + mjkluio7890 keys... And I cannot plug in normal keyboard right now. I used to move by a mouse, but I`ve got enough.

Right, here`s my problem:
I`ve got an ACER. On the very right-down side of the keyboard. On the first line there are EURO key (doesn`t work), up key, DOLLAR key (doesn`t work). On the second line there are left key, down key and right key. I would like to use EURO key for turning left and DOLLAR key for turning right while playing. What should I change in config.dat file?


this is NOT exactly the same keyboyard I have, but look at the right-down corner of its keyboard:
http://www.notebookreview.com/assets/9493.jpg
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
User avatar
Suule
On Master
Posts: 656
Joined: Tue Aug 09, 2005 11:42 pm
Location: Warsaw, Poland

Post by Suule »

In Media Markt there's an USB numeric keypad available.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

Since you are posting here, I assume you are using CSBwin.
So set the window size to 1, determine the key codes
for the keys you want to use, and modify config.txt
to use thse keys.
User avatar
Adamo
Italodance spammer
Posts: 1534
Joined: Fri Apr 22, 2005 11:59 am
Location: Poland
Contact:

Post by Adamo »

woohoo!!!!!!! :D

I changed keys:

"move backward" to 000050,
"turn left" to 000033,
"turn right" to 000034

and everything works fine, even on my perverted laptop keyboard!!! :)

thank you!!!
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
User avatar
Adamo
Italodance spammer
Posts: 1534
Joined: Fri Apr 22, 2005 11:59 am
Location: Poland
Contact:

Post by Adamo »

I think there should be an information for newbies in config.txt file, how to rearrange € and $ keys on Acer Laptop Keyboard users. Now it is:

Code: Select all

|€|^|$|
|<|v|>|
http://www.notebookreview.com/assets/9493.jpg
Check the low-right part of the keyboard.

Euro and Dollar doesn`t turn you left/right.
Last edited by Adamo on Sat May 03, 2008 3:55 pm, edited 1 time in total.
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
User avatar
Adamo
Italodance spammer
Posts: 1534
Joined: Fri Apr 22, 2005 11:59 am
Location: Poland
Contact:

Post by Adamo »

I lost my reconfigurated config file and now I`ve got the problem.
Dunno how to change the key code back to fit my keyboard.
When I press €, CSBwin says:

"0080 key -> ignored
00000000 mscan -> ignored
00000000 scan -> ignored".

When I press $, CSBwin says:

"0024 key -> ignored
00000000 mscan -> ignored
00000000 scan -> ignored".

When I add a lines:
key 1 000024 470000 ; ACER Dollar= turn right
key 1 000080 520000 ; ACER Euro = turn left

to the config file and run a game, it works (the € and $ works), but a party turns right/left not when I press the key, but when I release it. So holding € for a long time won`t result of the constant turning left, as it is with the "<" ">" "^" "v" keys (when I press and hold "^" key, the party will go through untill it meets the wall).
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

Adamo wrote:not when I press the key, but when I release it.
That is quite impossible. So there :!:

I checked the code. When it receives
a 'KEY_UP' message it ignores it. It only
responds to 'KEY_DOWN' messages.

(1)
Are those keys special in some way? Like
the 'ALT' key or 'CONTROL' key?

(2)
When you are in x1 mode looking at the
keycodes sent by the various keys: when
does: "0080 key -> ignored" appear?
When you press the key or when you
release the key.

(3)
Do these keys cause a character to
appear when you press them in a text editor?
Or when you release them?

This is all very strange.
User avatar
Adamo
Italodance spammer
Posts: 1534
Joined: Fri Apr 22, 2005 11:59 am
Location: Poland
Contact:

Post by Adamo »

when the config file is unchanged (wchich is):

Code: Select all

key  1 00001b 00001b  ;  escape = Freeze Game
;
key  1 00006b 480000  ; 'k' = move forward
key  1 00004b 480000  ; 'K' = move forward
scan 1 000048 480000  ; Keypad '8' = move forward
key  1 000108 480000  ; SDL Keypad '8' = move forward
;
key  1 00006c 470000  ; 'l' = turn right
key  1 00004c 470000  ; 'L' = turn right
scan 1 000049 470000  ; Keypad '9' = turn right
key  1 000109 470000  ; SDL Keypad '9'
;
key  1 00006a 520000  ; 'j' = turn left
key  1 00004a 520000  ; 'J' = turn left
scan 1 000047 520000  ; Keypad '7' = turn left
key  1 000107 520000  ; SDL Keypad '7'
;
key  1 00002e 4d0000  ; '.' = move right
scan 1 00004d 4d0000  ; Keypad '6' = move right
key  1 000106 4d0000  ; SDL Keypad '6'
the € and $ keys doesn`t work at all. I set the looking mode to 1. I press and hold € key. Nothing happens. When I release it, there appears a "0080 key -> Ignored" text. Same with $.

When I change the code (add € and $ lines):

Code: Select all

key  1 00001b 00001b  ;  escape = Freeze Game
;
key  1 00006b 480000  ; 'k' = move forward
key  1 00004b 480000  ; 'K' = move forward
scan 1 000048 480000  ; Keypad '8' = move forward
key  1 000108 480000  ; SDL Keypad '8' = move forward
;
key  1 00006c 470000  ; 'l' = turn right
key  1 00004c 470000  ; 'L' = turn right
scan 1 000049 470000  ; Keypad '9' = turn right
key  1 000109 470000  ; SDL Keypad '9'
key  1 000024 470000  ; ACER Dollar= turn right
;
key  1 00006a 520000  ; 'j' = turn left
key  1 00004a 520000  ; 'J' = turn left
scan 1 000047 520000  ; Keypad '7' = turn left
key  1 000107 520000  ; SDL Keypad '7'
key  1 000080 520000  ; ACER Euro = turn left
;
key  1 00002e 4d0000  ; '.' = move right
scan 1 00004d 4d0000  ; Keypad '6' = move right
key  1 000106 4d0000  ; SDL Keypad '6'
the € and $ keys works, but as I described (seems that CSBwin detects only releasing those keys, not pressing them).

There must be something with a code. I must have had add wrong lines or something. Or maybe I use wrong config file? Before I lost my config file, everything was ok.
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
User avatar
Adamo
Italodance spammer
Posts: 1534
Joined: Fri Apr 22, 2005 11:59 am
Location: Poland
Contact:

Post by Adamo »

(3)
Do these keys cause a character to
appear when you press them in a text editor?
Or when you release them?
only when I release them

yeah, well. It must be something with my keyboard.
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
User avatar
Adamo
Italodance spammer
Posts: 1534
Joined: Fri Apr 22, 2005 11:59 am
Location: Poland
Contact:

Post by Adamo »

finally I bought Laptop Numeric Keypad* and the problem is over. I could barely play DM with that sh###y laptop keyboard. I bet that ACER laptop designers aren`t fans of DM ;) oh well

* I thought NumKeypads are for 140 zł, wchich is about 35 Ł, but only the wireless ones are so expensive. The wired one cost me 6 Ł and it`s very usefull for DM and other games when you play it on laptop, because you can put mouse at the right and you can put Keypad at the left side of the table (I`m right-handed so I can`t hold mouse in left hand). With a computer with "regular" keyboard (not a laptop one) you don`t have that problem.
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
Post Reply

Return to “Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild”