Joypad support? A500 mini GUI on Amiga?

Anything related to Hollywood Designer goes in here
Post Reply
leavereality
Posts: 38
Joined: Sat Sep 28, 2019 1:39 pm

Joypad support? A500 mini GUI on Amiga?

Post by leavereality »

Just wondered if joystick support is in Hollywood Designer?

I know its in Hollywood coding, I basically been thinking about Recreating A500 Mini GUI in Hollywood designer. Im at a early stage but I know I can do it with a Mouse, but thinking about how I would go about adding Joypad support.

Basically at the moment i have it so when a user clicks on the middle box it loads WHDLoad game,
pretty simple so far,

So on selecting the next game, each game a page, so click on Batman then it load batman page.

So what would be the code for change page with joystick, so when the user push to the right it changes page to say Batman, and then when the user press Fire it loads the game.

i read in Hollywood coding its "ONJOYRIGHT1" but whats the code to change page ? if Hollywood Designer support this? and where would the code go? on Page events?

Plus the JOYFIRE code, where would that go? Plus would it be something like this?

Code: Select all

While(fire = FALSE)
Fire = JoyFire(0)
Wait(2)
IF Fire=True THEN Execute("whdload","Lemmings.slave")


I wish I was better at coding
-

so I wonder how or any better ideas how I would go about adding joystick support this way, as I have no idea really, . (its not the end of the world if it cant be done.)

anyway here is a sneak peek
https://amigang.com/images/ami5001.jpg
plouf
Posts: 467
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Joypad support? A500 mini GUI on Amiga?

Post by plouf »

It can be done, obviously.. but we are not in your head :)
it does not matter that you know less, just experiment reading manual..

while has no meaning here and also is wrong because it has not end (wend)
somewhere in your main loop you should use

Code: Select all

Fire = JoyFire(0)
IF Fire=True THEN Execute("whdload","Lemmings.slave")
p.s. if your main loop has

WaitEvent() ,
probably must be changed to

Wait(2); or more
CheckEvent()
Christos
leavereality
Posts: 38
Joined: Sat Sep 28, 2019 1:39 pm

Re: Joypad support? A500 mini GUI on Amiga?

Post by leavereality »

Thanks for the reply and help again.

Basically just want Joystick support on navigating a presentation.

I guess it something simple like,

onjoypadright change page +1,
onjoypadleft change page -1

But can quite find the code it would be
Post Reply