Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Howard_Casto on August 31, 2002, 11:54:42 pm

Title: Lazarus 3.0 here!
Post by: Howard_Casto on August 31, 2002, 11:54:42 pm
I added so many things this version I'm too tired to type them here.  Go check out the better than ever lazarus 3.0

www.oscarcontrols.com/lazarus/ (http://www.oscarcontrols.com/lazarus/)
Title: Re:Lazarus 3.0 here!
Post by: )p( on September 01, 2002, 02:57:14 am
Great work HC!    ;D


so no it is time to remind you about that general wrapper  8)

Peter
Title: Re:Lazarus 3.0 here!
Post by: SirPoonga on September 01, 2002, 04:01:17 am
This is when I say F U!  Man, I need ot go change my directory manager.  I will get it working with 3.0, then it's yours!  It might be awhile until I get to it though.  if you want it now, the only thing you need to do is add filters and the ability to have more than one additional artwork dir.  Wait,t hat;s just some copy and paste and extra code.  I;ll try and squeeze it in.

Now that I have figured out how to get around some flash issues I am REALLY busy rewriting yapfe...
Title: Re:Lazarus 3.0 here!
Post by: SirPoonga on September 01, 2002, 04:36:19 am
AHHHH, need update to readme on website!!

searchstrings:11=*players 4 control joy8way*;11=*players 3 control joy8way*

I can only go up to 7 right now since THAT'S all you have documented!!

Give me an email with the new key values and what they are for.  I have the dirs.ini manager updated.  It was really easy to update.  But I don't have the new key values for the searchstrings anf filters.
Title: Re:Lazarus 3.0 here!
Post by: Demon-Seed on September 01, 2002, 10:23:08 am
No Joystick support??

Can u explain this?
Title: Re:Lazarus 3.0 here!
Post by: Demon-Seed on September 01, 2002, 11:05:08 am
does the mp3 playback work now??? can u explain how to do it.

thx
Title: Re:Lazarus 3.0 here!
Post by: Demon-Seed on September 01, 2002, 11:10:40 am
sweet i got it working!! f*cking right!
Title: Re:Lazarus 3.0 here!
Post by: Howard_Casto on September 01, 2002, 12:28:34 pm

No Joystick support??

Can u explain this?


The joystick support has always been totally seperate from the keyboard support and I have to duplicate all event functions for it.  This time I added a shift key and I honestly don't know how to do it for a joystick.  You see the joystick data I get back from buttons pressed is simply a number.  The number is the total of all the scancodes of all the buttons.  It's easy to see if one button is pressed but a bit harder to tell which two are pressed if two are held down.  If anyone has some experience with joystick scancodes then prehaps they can help me.   Really it just doubles my work at this point and I'm not that interested unless I can find a better way to do it.  
Title: Re:Lazarus 3.0 here!
Post by: Yarb on September 03, 2002, 11:53:24 pm
Any chance the scan codesmap to binary bits? if they do you could isolate them with boolean logic

Yarb
Title: Re:Lazarus 3.0 here!
Post by: Howard_Casto on September 04, 2002, 04:00:43 pm
No they actually map to integers.. multiples of two actually... button1 =0 button2=2 button3=4 ect
Title: Re:Lazarus 3.0 here!
Post by: Yarb on September 05, 2002, 12:40:08 am
Ahh that is binary so you can use boolean to isolate them. In a binary word, say 4 bits for a joystick each switch would map to one of the bits. Since each bit is a power of 2 it would work like this

Assuming left right up down

L R U D
1 1 1 1   4 Bits read 1 if pressed and 0 if not
1 2 4 8   Their Decimal values

If the joy is pressed left the value would be 1, if up it would be 4 if left and up it would be 5 (The sum of the two bits).You can test a single switch with the boolean AND function, if you wanted to test if the up switch is pressed just AND the word with 0010 or Decimal 4. Since in binary the and function requires a 1 in the corrisonding bit of both arguments to return a one in that position the 0's effecively mask out the unwanted bits. If the result is 0 then the button is not pressed regardless of the other buttons, if it is non zero then it is pressed. You can easily make a table of values for all combinations as well. I'm not sure how you need to read and use the informations but if you want add more info or drop an e-mail I'd be glad to help.

Yarb
Title: Re:Lazarus 3.0 here!
Post by: Howard_Casto on September 05, 2002, 02:04:45 am
Yeah that'll work, but there is an odd thing about the buttons which make them hard to isolate....  Usually they do go by powers of two but i've found that on some they jump around.  It makes no sense to me and seems to depend upon the type of joystick.  Anyway when I feel like starting joystick support again I'll drop you a line... thanks for your advice.  :)
Title: Re:Lazarus 3.0 here!
Post by: mhoward211 on September 05, 2002, 12:41:30 pm
If I am reading this correctly the joystick in our cabinets is not supported?  Would this mean not supported when you needed to scroll this list of games and whatnot?  How is one suppose to navigate your front end when it is used within a cabinet?
Title: Re:Lazarus 3.0 here!
Post by: )p( on September 05, 2002, 12:48:38 pm

If I am reading this correctly the joystick in our cabinets is not supported?  Would this mean not supported when you needed to scroll this list of games and whatnot?  How is one suppose to navigate your front end when it is used within a cabinet?


it uses keyboard strokes for input. As you know most of us use keyboard encoders like the ipac for our arcade joysticks.. If you use a joystick there are programs like joytokey to make lazarus, and also 3darcade,  work with them...

Peter
Title: Re:Lazarus 3.0 here!
Post by: SirPoonga on September 05, 2002, 01:15:04 pm
Those with gamepad hacks will have to get driver software that maps buttons to keys.  Yeah, it sucks.
Title: Re:Lazarus 3.0 here!
Post by: mhoward211 on September 05, 2002, 01:53:51 pm
I follow you now, sorry for that brain fart.