Welcome, Guest. Please login or register.

Author Topic: Aros keyboard issues  (Read 2579 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline amyrenTopic starter

Aros keyboard issues
« on: December 03, 2024, 12:08:03 PM »
I find that the keyboard is not working for a game programmed in Blitz that uses RawStatus to capture keyboard events.
Tested both running it from Amibench and by booting from adf with the aros rom.
Booting from other ROMs will work fine with keyboard.
 

Offline broadblues

Re: Aros keyboard issues
« Reply #1 on: December 03, 2024, 02:36:14 PM »
Can you give me some more details? Got any src code? This could be clue for a problem with something else, where I have less info.

What in particular is "RawStatus" a quick autodoc search returned no results (but they were Os4 autodocs :-))
« Last Edit: December 03, 2024, 02:38:49 PM by broadblues »
 

Offline amyrenTopic starter

Re: Aros keyboard issues
« Reply #2 on: December 04, 2024, 10:14:24 AM »
Rawstatus is a command used in BlitzBasic

Here is a short blitz code example
The program will do nothing exept to open a screen in blitz mode and wait for the ESC key to be pressed
In AmiBench it will not detect the esc key at all. In Workbench 3.1 it will work (although throw an error upon quitting, because this is just a quick and dirty example)

Code: [Select]
BLITZ
Repeat
If RawStatus(69) Then quit = 1
VWait
Until quit
End
 

Offline SkulleateR

Re: Aros keyboard issues
« Reply #3 on: December 04, 2024, 10:48:20 AM »
What in particular is "RawStatus" a quick autodoc search returned no results (but they were Os4 autodocs :-))

That should be the same raw key codes as used by WHDLoad : https://whdload.de/docs/en/rawkey.html :)
 

Offline amyrenTopic starter

Re: Aros keyboard issues
« Reply #4 on: December 04, 2024, 01:23:53 PM »
That should be the same raw key codes as used by WHDLoad : https://whdload.de/docs/en/rawkey.html :)

That might be the same codes, but its not collected in the same way by BlitzBasic when it goes into Blitz mode.
I'm no expert on the inner workings of BlitzBasic but I think it operates more in OS-friendly mode when in Amiga mode, while Blitz mode is closer to the hardware.

That might explain why the code below does work on AmiBenc, using a similar command Rawkey for Amiga mode operations:
Code: [Select]
WBStartup
Screen 0,3
Window 0,0,0,320,200,$1000,"Hello!",0,1
Repeat
ev.l=WaitEvent
NPrint RawKey
Until RawKey = 69  ;ESC to QUIT
End
 

Offline SkulleateR

Re: Aros keyboard issues
« Reply #5 on: December 04, 2024, 02:03:03 PM »
That might be the same codes, but its not collected in the same way by BlitzBasic when it goes into Blitz mode.


My post was all about the raw key values for each key ...

"ESC" = Hex 45 = Dec 69

WHDLoad uses them for the tool types e.g. QUITKEY=$45
 

Offline broadblues

Re: Aros keyboard issues
« Reply #6 on: December 04, 2024, 03:46:56 PM »
@thread

Thanks for the replies, I had tracked down that command in the mean time, compile a test program with AmiBlitz and confirmed it worked under 3,5 and not AmiBench,

Goods to know we are talking about the same thing.

Currently my attempts to reassemble it with In_Go and see what might be going on have failed. 'll have another go at some point, anyone with original src code to Blitz about?
 

Offline SkulleateR

Re: Aros keyboard issues
« Reply #7 on: December 04, 2024, 03:54:18 PM »
'll have another go at some point, anyone with original src code to Blitz about?

Here´s the BlitzBasic2 Source code -> https://github.com/nitrologic/blitz2
 

Offline broadblues

Re: Aros keyboard issues
« Reply #8 on: December 05, 2024, 09:14:29 AM »
Here´s the BlitzBasic2 Source code -> https://github.com/nitrologic/blitz2


Thansk, didn't know that was out there, but unfortunately looks like it only the src of the compiler tools and examples, the deflibs / acidlibs whatever they are correctly called are not there except as a binary blob, so near so far :-/
 

Offline amyrenTopic starter

Re: Aros keyboard issues
« Reply #9 on: December 05, 2024, 09:52:21 PM »
Amiblitz3 sources are also available on github:
https://github.com/AmiBlitz/AmiBlitz3

If you don't find what you are after there you can try the blitzbasic forum at eab https://eab.abime.net/forumdisplay.php?f=126
 

Offline broadblues

Re: Aros keyboard issues
« Reply #10 on: December 07, 2024, 12:19:33 PM »
Thanks for the various links, I have studied the various relevant fragments of assembler and worked out that that I don't have clue what its doing LOL :-)

More seriously I tracked down that it writes and reads key data to an address via some input "stream handlers" where this stream is coming from is the bit I can't yet find, and is likely the bit that AROS rom is not supporting.What they aren't is conventional input device handlers. Console device maybe? r worse something completely custom....
 

Offline broadblues

Re: Aros keyboard issues
« Reply #11 on: January 21, 2025, 02:26:12 PM »
This issue is fixed with Update 46.1.972
 
The following users thanked this post: amyren, amigakit, notel98, SkulleateR

Offline amyrenTopic starter

Re: Aros keyboard issues
« Reply #12 on: January 28, 2025, 10:32:18 AM »
Thanks. I can confirm that my blitz game Caveman not works also with the keyboard on Amibench.