English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 03 April 2021, 19:44   #1
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
[blitz] detecting "2 keys down" in blitz mode

Hi,
is the code below correct?



if it is then why I'm having troubles with (S) direction ($21)?
(S) alone works fine but when others (W,A,D) are down it doesn't - program behaves like (S) is not pressed.

Thanks
peceha is offline  
Old 03 April 2021, 20:59   #2
Cobe
Registered User
 
Join Date: Jan 2014
Location: Belgrade / Serbia
Age: 41
Posts: 999
I only used it few times like this
If rawstatu($xx) and rawstatus($yy) then.. it worked for me.
Cobe is offline  
Old 03 April 2021, 21:18   #3
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
Haha,
I think there is something wrong with my keyboard.

My original version was like yours but I changed it because it was not working
At the same time I changed WSAD to arrows and was happy that new solution worked (but forgot that I also changed the keys).

Today I moved back to WSAD and a problem with combination of S+ other key is back but arrows work fine (also other key instead of (S) works fine).

So the problem is my keyboard.

Thanks
peceha is offline  
Old 03 April 2021, 21:37   #4
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Some Amiga keyboards don't support certain simultaneous key combinations due to the design of the matrix and the controller. This was an issue that only really became prominent when first person shooters started appearing - people suddenly found that WASD controls didn't work on the A1200 for example, but playing certain chords in trackers was also impossible on the A1200 back in the day due to this limitation. The arrow keys and qualifiers are more capable of being detected simultaneously, so games tended to use them instead of WASD as on the PC. IIRC big-box Amiga keyboards could handle them, and adaptors for PC keyboards also overcame the problem.

So it's probably not your keyboard specifically, but every Amiga 1200 keyboard
Daedalus is offline  
Old 03 April 2021, 22:35   #5
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
hmmm...
I think I would be more happy if it was my keyboard to blame

but to be honest I've never heard about it - good to know anyway

Thanks
peceha is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[blitz] amiga/blitz Mode speed question peceha Coders. Blitz Basic 3 10 January 2021 18:52
[blitz] - "bblit" sometimes destroys background peceha Coders. Blitz Basic 3 11 August 2019 23:48
What are "VGA mode resolution autoswitch" and "Variable sync"? Foebane support.WinUAE 2 09 November 2017 21:21
Blitz Bomber [AGA] - "HD install" --> "ADFs" DamienD request.Old Rare Games 17 20 October 2016 16:50
BLITZ BASIC 2 "floor,ceiling and modulo% equivalent" Raislin77it Coders. Blitz Basic 10 19 July 2015 05:24

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:40.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16787 seconds with 13 queries