|
Keys Potential Bug
#450589
04/19/15 06:09
04/19/15 06:09
|
Joined: Apr 2005
Posts: 1,988 Canadian, Eh
DLively
OP
Serious User
|
OP
Serious User
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
|
I'm sure this is a bug, because I just tested it with other buttons and it works fine, (And what I'm doing should be do-able) so: I am making use of WASD, and CUL CUR CUU CUD for primary movement keys (Different combinations have different effects) so when I am pressing key_s and key_cud at the same time, the keys work together. then while still holding those keys(S and CUD) I try to press A and CUR, but they will not work at the same time. Examples:
#include <acknex.h>
#include <litec.h>
#include <default.c>
function main(){
level_load(NULL);
while(1){wait(1);
if(key_s && key_cud && key_a && key_cur) {beep();wait(4);}
if(key_s && key_cud && key_d && key_cur) {beep();wait(4);}
if(key_s && key_cud && key_a && key_cul) {beep();wait(4);}
//-- This is the only one that works
if(key_s && key_cud && key_d && key_cul) {beep();wait(4);}
}
}
Just copy this into a new script, save it as whatever.c and give it a try for yourself.
Last edited by DLively; 04/19/15 06:10.
|
|
|
Re: Keys Potential Bug
[Re: alibaba]
#450611
04/19/15 15:30
04/19/15 15:30
|
Malice
Unregistered
|
Malice
Unregistered
|
+1 confirmed script runs perfectly fine even with my newer laptop, this problem is isolated to your hardware or environment.
|
|
|
Re: Keys Potential Bug
[Re: ]
#450614
04/19/15 15:42
04/19/15 15:42
|
Joined: Apr 2005
Posts: 1,988 Canadian, Eh
DLively
OP
Serious User
|
OP
Serious User
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
|
Im using a Desktop with windows 7 Home Premium, And it doesnt work on any pcs ive tested it on. Try again? You should only get a beep on the fourth set of combinations. Also It works fine with other keys. Those are the only combination it wont work for.
Last edited by DLively; 04/19/15 15:44.
|
|
|
Re: Keys Potential Bug
[Re: DLively]
#450617
04/19/15 15:50
04/19/15 15:50
|
Malice
Unregistered
|
Malice
Unregistered
|
As stated this script works perfect for me.
|
|
|
Re: Keys Potential Bug
[Re: ]
#450621
04/19/15 16:10
04/19/15 16:10
|
Joined: Apr 2005
Posts: 1,988 Canadian, Eh
DLively
OP
Serious User
|
OP
Serious User
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
|
Thanks Malice When I have some time, Ill construct something a bit more complex for testing because it should NOT work. I've tried it on 3 individual pcs (win 7, win 7, and win 8) and get the same results in all aspects of the game on each pc.. You're using a Frisbee, so ill condense my code as soon as I can for debug purposes, and if you have time perhaps you can test it
Last edited by DLively; 04/19/15 16:10.
|
|
|
Re: Keys Potential Bug
[Re: DLively]
#450622
04/19/15 16:14
04/19/15 16:14
|
Malice
Unregistered
|
Malice
Unregistered
|
PM me the code when your ready or a dl link for like dropbox, I'll test away. For now when all 4 button are pressed, there maybe a slight pause however the beep sound with ever combination.
Goodluck Mal
|
|
|
Re: Keys Potential Bug
[Re: ]
#450624
04/19/15 16:20
04/19/15 16:20
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
As Alibaba stated, this is not a software limitation but purely a hardware one. The term for this is Rollover.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Keys Potential Bug
[Re: WretchedSid]
#450625
04/19/15 16:43
04/19/15 16:43
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
yip was common with low end keyboard hardware aswell , there's also something about the way the keys are wired up all together , some keys can work and others not ,depending on the harware differences sometimes . if you really want a lot of keys working together and great response , buy a gaming keyboard. I had one and it was kick ass.. oh yeah here http://gaming.stackexchange.com/question...-button-presses
Last edited by Wjbender; 04/19/15 16:44.
Compulsive compiler
|
|
|
|