Welcome, Guest. Please login or register.

Author Topic: Aros keyboard issues  (Read 4324 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 amyrenTopic starter

Re: Aros keyboard issues
« Reply #1 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 amyrenTopic starter

Re: Aros keyboard issues
« Reply #2 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 amyrenTopic starter

Re: Aros keyboard issues
« Reply #3 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 amyrenTopic starter

Re: Aros keyboard issues
« Reply #4 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.