Picomite VGA games


Author Message
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1547
Posted: 12:56pm 18 Apr 2023      

Hi Tom
  thwill said  
  Martin H. said  I have trouble with 5.07.07RC/Beta with the Game-Controller Routines but maybe Tom can fix it

Oh good, I was feeling idle ... not . Can you be more specific about the problem.

The Error I get is:

[809] If Call(read_fn$(i%)) = expected%(i%) Then
Error : Unknown user function

in Function ctrl.poll$ ...

 Do
   For i% = 0 To Bound(read_fn$(), 1)
     ctrl.open(read_fn$(i%))
     t% = Min(expires%, Timer + 100)
     ' Try to read the controller multiple times within a 100ms window.
     Do
       If Call(read_fn$(i%)) = expected%(i%) Then
         ctrl.poll$ = read_fn$(i%)
         Exit Function
       EndIf
     Loop Until Timer >= t%
   Next
 Loop Until Timer >= expires%



or
[435] Select Case Call(controller$) ' @thwill
Error : Unknown user function

my System :
PicoMiteVGA MMBasic Version 5.07.07RC4
OPTION KEYBOARD GR
OPTION CPUSPEED (KHz) 252000
OPTION SDCARD GP10, GP12, GP11, GP13
OPTION AUDIO GP6,GP7, ON PWM CHANNEL 3

I hope that helps
Edited 2023-04-18 22:58 by Martin H.