Lazarus

Programming => Graphics and Multimedia => Games => Topic started by: vdijken on April 12, 2019, 06:09:43 pm

Title: 64-bits library for using joystick
Post by: vdijken on April 12, 2019, 06:09:43 pm
All the libraries is found for using a joystick are 32 bits. I like to use 64-bits Lazarus. Is there any library up-to-date that it can be used a joystick in in 64-bits application?
Title: Re: 64-bits library for using joystick
Post by: Ñuño_Martínez on April 13, 2019, 10:58:11 am
Allegro.pas (http://allegro-pas.sourceforge.net/).
Title: Re: 64-bits library for using joystick
Post by: Thaddy on April 13, 2019, 09:01:31 pm
His eyes popped out, so he couldn't see this:
https://sourceforge.net/projects/alleg/files/allegro-unstable-bin/5.1.11/

and then pick this one: https://sourceforge.net/projects/alleg/files/allegro-unstable-bin/5.1.11/allegro-msvc2013-x64-5.1.11.zip/download

Maybe I am entiltled a <grumpy  >:D > in this case, as are all of the others that tried to help.... O:-)
Title: Re: 64-bits library for using joystick
Post by: vdijken on April 13, 2019, 09:03:06 pm
I found some zip files version 8.2.1 with allegro 5.2 versions in it. How nice. And there are also 8.2.0 versions. Static, dynamic, dwarf, posix you name it. Which one is the right 64 bit version? All gave the same error.
Title: Re: 64-bits library for using joystick
Post by: Thaddy on April 13, 2019, 09:05:41 pm
Well, the OFFICIALsourceforge  website doesn't list 5.2 at all in binary format. Try my links. Bit annoying now. You can't even search?
If you do not want the unstable release (not unstable)you are out of luck. Only from 5.1.1 are there complied 64 bit binaries..
Title: Re: 64-bits library for using joystick
Post by: Handoko on April 13, 2019, 09:26:34 pm
Try these:
https://www.allegro.cc/files/
https://liballeg.org/download.html#windows
Title: Re: 64-bits library for using joystick
Post by: vdijken on April 14, 2019, 03:59:50 pm
I tried nuget from liballeg. The dll in those zip files, V141 and v142 give the same error. Version downloaded file is 5.2.5.2. Seems still 32-bit versions, but nowhere mentioned there.
Title: Re: 64-bits library for using joystick
Post by: Thaddy on April 14, 2019, 04:02:12 pm
Listen: if you can't compile the sources yourself, plz use the 5.1.1. version I pointed you at. That works.
Title: Re: 64-bits library for using joystick
Post by: Thaddy on April 14, 2019, 04:06:34 pm
Try these:
https://www.allegro.cc/files/
https://liballeg.org/download.html#windows
The former contains no 64 bit binaries?
The latter have the disadvantage they are compiled with mingw/gnu C, which - on windows - renders significantly slower binaries compared to ms visual studio C compilers.
Anyway. I will respond to you Handoko, but not to OP. He can't read or write nor compile. Glad to help a noob, but not...
Title: Re: 64-bits library for using joystick
Post by: Handoko on April 14, 2019, 05:00:40 pm
@Thaddy
Be patient, sir.

@vdijken
Have you tried the links I provided? I saw lots of "w64", they maybe what you're looking for:
Title: Re: 64-bits library for using joystick
Post by: Ñuño_Martínez on April 15, 2019, 10:49:03 am
Take a look to these files (https://sourceforge.net/p/allegro-pas/code/HEAD/tree/TRUNK/docs/build/).  They're from TRUNK (yet unreleased) but should be valid for previous versions as well.

Please don't show us RED ANGRY FACE.  >:(
No one here is responsible to help you!  >:(
That will teach him to type angry faces  :D
What the hell happened? :o
Title: Re: 64-bits library for using joystick
Post by: Handoko on April 15, 2019, 12:30:33 pm
What the hell happened? :o
Nothing serious. The TS was a bit too impatient when he failed to make thing work. But he later removed the post, so I removed mine too.
Title: Re: 64-bits library for using joystick
Post by: marcov on April 15, 2019, 01:21:28 pm
It's a strange thread anyway, as it is a question about joystick, and then turns into a discussion about allegro. The title should be updated to reflect that.

Afaik jedi used to have a joystick header that interfaced with DirectX/input. That was in 32-bit only times, so might need updates.
Title: Re: 64-bits library for using joystick
Post by: Thaddy on April 15, 2019, 01:53:36 pm
It's a strange thread anyway, as it is a question about joystick, and then turns into a discussion about allegro. The title should be updated to reflect that.

Afaik jedi used to have a joystick header that interfaced with DirectX/input. That was in 32-bit only times, so might need updates.
The reason it *seems* like a allegro advertisement is that that is actually working and we are in lack of info about other solutions.
E.g. On linux IOCTL options are available, but no serial options, etc, etc.
 I tested 64 bit allegro 5.1.1 / joystick parts during the weekend and there are no problems on 64 bit windows at all.

OP is rather inexperienced and can't express at what point his efforts fail. Not enough information...
Title: Re: 64-bits library for using joystick
Post by: 440bx on April 15, 2019, 04:29:39 pm
What the hell happened? :o
Nothing serious. The TS was a bit too impatient when he failed to make thing work. But he later removed the post, so I removed mine too.
To keep the thread understandable, I removed mine too.
Title: Re: 64-bits library for using joystick
Post by: Ñuño_Martínez on April 16, 2019, 09:02:32 am
Ok. Now I understand.

It's a strange thread anyway, as it is a question about joystick, and then turns into a discussion about allegro. The title should be updated to reflect that.
Well, Allegro does support joystick and works on 64bit systems, so that's why I recommended.  Of course it depends in what vdijken wants to do (Allegro doesn't like to be mixed with some Lazarus libraries :().

Sorry for the SPAM. :-[
Title: Re: 64-bits library for using joystick
Post by: Paul_ on April 22, 2019, 04:14:30 am
Or SFML - https://github.com/DJMaster/csfml-fpc
Title: Re: 64-bits library for using joystick
Post by: sash on May 13, 2019, 08:01:47 pm
Probably a bit late, but it's strange nobody mentioned SDL.
I'm using it almost for a decade.

IMO most consistent APIs available for different platforms (and bitness of course, as it's open source),
it even includes force feedback (where it is supported).

There are multiple Pascal bindings.
TinyPortal © 2005-2018