Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (TipmyPip, AndrewAMD, Quad, aliswee, degenerate_762), 970 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
pressing many keys at the same time #14463
04/01/03 01:44
04/01/03 01:44
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
i am working on a two player game with the players at the same computer. if one player presses too much keys at the same time to control his entity the other player gets problems controlling his entity because some keys don't react properly anymore. is there a (directinput or engine) limit of how many keys can be pressed at the same time? how could i workaround or avoid this? i think it happens when more than 4 keys of the keyboard get pressed at the same time. i tried to do my steering code with different methods (on_..., key_pressed(scancode),...) but nothing helped...

Re: pressing many keys at the same time #14464
04/01/03 02:52
04/01/03 02:52
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline
Expert
Error014  Offline
Expert

Joined: Jul 2002
Posts: 3,208
Germany
I read about it in a readme for a game, don't know which (No GameStudio-Game!). In this readme it said, this is a problem with the keyboard-driver, and they "working hard to solve this problem"

So, I see only the solution that one player plays with joystick.


Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!
Re: pressing many keys at the same time #14465
04/01/03 04:22
04/01/03 04:22
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
I think this should be in the FAQ (please post follow up questions there).

This is a keyboard hardware problem and not a software or driver problem. I will not go into the details, but your keyboard keys are not individually mapped, they use a matrix of wires with each key acting as a switch. If you press the right (wrong) combination of keys you can ‘block’ other keys from responding.

To see this in action, open up notepad, press and hold the 'a' and 'w' keys, and then tap the 's' key. On my keyboard the input stops when the ‘s’ key is pressed.

To make things worse, different keyboards can act differently.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: pressing many keys at the same time #14466
04/01/03 04:58
04/01/03 04:58
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
ok, thank you both for the answers!

i tried to do a spacewar remake and it was almost finished when i found out that the controls don't work properly when 2 players play seriously. [Frown] the strange thing is that pressing all the keys worked with the old spacewar for dos from the eighties. maybe keyboards were designed differently 15 years ago? [Smile]

quote:
To make things worse, different keyboards can act differently.
is there a minimum number of simultanously pressed keys that is surely supported with every keyboard so that i can design controls of future games with that in mind? are there any rules known by experienced game developers to follow?

quote:
So, I see only the solution that one player plays with joystick.
a gamepad would be great for spacewar but i (and i think the majority of pc users) don't have one.

Re: pressing many keys at the same time #14467
04/02/03 18:39
04/02/03 18:39

A
Anonymous
Unregistered
Anonymous
Unregistered
A



I think I've figured out the problem. Studiing the reactions of the keys. I came to this.
Sertain combinations of minimum 3 keys cause the keypad to block. The pattern is:

q---w-t---y
as-as-gh-gh

I think you could avvoid this by using the only keys from the same row or using only 2 key combination from different rows - like in CS:
W - walk foreward S- walk backward A- left D- right W+A - upper left, S+A backwards and left... As it is unusual to press A+W+S at the same time. Another thnig - this problem won't take place if you press key combinations from different columns like: A+F+O or Q+T+J...

Re: pressing many keys at the same time #14468
04/10/03 13:24
04/10/03 13:24
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
here is my little unfinished spacewar game whose keyboard controls don't work properly if two players play seriously. but it's fun to destroy your own torpedos with the laser! [Smile] it does almost look like the original dos version...

keys are:
player1:
(on keypad)
1 - shift energy
2 - cloak
3 - shift energy
4 - rotate left
5 - thrust
6 - rotate right
7 - torpedo
8 - hyperspace
9 - laser

player2:
y - shift energy
x - cloak
c - shift energy
a - rotate left
s - thrust
d - rotate right
q - torpedo
w - hyperspace
e - laser

f4 - toggle planet/gravity

Re: pressing many keys at the same time #14469
04/18/03 12:39
04/18/03 12:39

A
Anonymous
Unregistered
Anonymous
Unregistered
A



My compiler says Runtime.dll is missing!?

Re: pressing many keys at the same time #14470
04/18/03 12:47
04/18/03 12:47
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
if you try to run my game? strange!

Re: pressing many keys at the same time #14471
04/18/03 15:34
04/18/03 15:34
Joined: Oct 2002
Posts: 120
India
G
greyplasma Offline
Member
greyplasma  Offline
Member
G

Joined: Oct 2002
Posts: 120
India
Works fine on my Pc ....good fun....

I am facing similar keyboard problem, i am making a mortal kombat style fighting game.

If two people play and one guy is holding more than 3 keys pressed the other guy cannot do anything.

Then i played MK4 again and found the same problem. So i don't think there is an immediate solution to this.

Re: pressing many keys at the same time #14472
04/19/03 03:17
04/19/03 03:17
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
Anybody try two USB game pads? You can buy a USB game pad for $12 and we support 2 joysticks.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Page 1 of 3 1 2 3

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1