PureBasic 6.30 beta 4 is ready !

Developed or developing a new product in PureBasic? Tell the world about it.
spacebuddy
Enthusiast
Enthusiast
Posts: 364
Joined: Thu Jul 02, 2009 5:42 am

Re: PureBasic 6.30 beta 4 is ready !

Post by spacebuddy »

Another excellent update. :D
User_Russian
Addict
Addict
Posts: 1600
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.30 beta 4 is ready !

Post by User_Russian »

What data return function IsHID()? If it is not a pointer to a structure hid_device, then how can one get it?
Quin
Addict
Addict
Posts: 1154
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.30 beta 4 is ready !

Post by Quin »

Just wanted to drop by and state my appreciation for this upcoming release! I got a software development job and haven't been touching pb as much these days, but it's a great hobby tool and I love the new InputRequester flag :)
MGD
User
User
Posts: 17
Joined: Wed Jul 27, 2022 8:31 pm

Re: PureBasic 6.30 beta 4 is ready !

Post by MGD »

Relatively new to PB and looking at the new ScreenWindow and gadgets. It looks like these build on the 2D screen library, and as such use OpenGL. Is it possible to open an OpenGL gadget on top of a screen? If so, how do you manage the OpenGL context switching?
(Yes, I have a reason for doing this... I want to pass the OpenGL context in a positioned gadget to an external library for it to draw while I'm managing the enclosing UI, which will contain other "portal" gadgets (eg webviews) as well).
User_Russian
Addict
Addict
Posts: 1600
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.30 beta 4 is ready !

Post by User_Russian »

Tested the HID library in the project FM tuner for PC (text is on russian language, use google-translate) on Windows, Linux and MacOS and it works stably.
Fred
Administrator
Administrator
Posts: 18372
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.30 beta 4 is ready !

Post by Fred »

Thanks for the feedback !
User_Russian
Addict
Addict
Posts: 1600
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.30 beta 4 is ready !

Post by User_Russian »

User_Russian wrote: Sat Nov 01, 2025 3:35 pm What data return function IsHID()? If it is not a pointer to a structure hid_device, then how can one get it?
I figured out how to do it.

Code: Select all

Procedure HID_ID(HID)
  Protected id=0
  
  id = IsHID(HID)
  If id
    id=PeekI(id)
  EndIf
  
  ProcedureReturn id
EndProcedure
The procedure will return a pointer to structure hid_device or 0 if the device is not open.
Quin
Addict
Addict
Posts: 1154
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.30 beta 4 is ready !

Post by Quin »

Any chance of seeing this in 6.30? viewtopic.php?p=635679
akee
Enthusiast
Enthusiast
Posts: 500
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: PureBasic 6.30 beta 4 is ready !

Post by akee »

Hi Fred,
It would be nice to have ../PureBasic/Residents/UserResidents folder for constants. Something like ../PureBasic/PureLibraries/UserLibraries folder for libraries.

PureLibrary has made my programming journey so much more pleasant. Thank you.
Fred
Administrator
Administrator
Posts: 18372
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.30 beta 4 is ready !

Post by Fred »

Good idea
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 360
Joined: Sat Dec 25, 2004 2:37 pm

Re: PureBasic 6.30 beta 4 is ready !

Post by thyphoon »

A little idea. Could you add a line to the build log that prints all link-time dependencies (DT_NEEDED) of the binary, and also list the runtime dependencies (shared libraries) needed to run the compiled program (Linux) ?
infratec
Always Here
Always Here
Posts: 7676
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PureBasic 6.30 beta 4 is ready !

Post by infratec »

thyphoon wrote: Sun Nov 09, 2025 7:45 pm .. and also list the runtime dependencies (shared libraries) needed to run the compiled program (Linux) ?
You can use ldd to find out the needed libs.
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 360
Joined: Sat Dec 25, 2004 2:37 pm

Re: PureBasic 6.30 beta 4 is ready !

Post by thyphoon »

infratec wrote: Sun Nov 09, 2025 8:43 pm You can use ldd to find out the needed libs.
Thank you 🥳, I wasn't aware of this command😅. I didn't even think to check if it was possible to do it directly😱
Too much Windows in my life!🫣
Post Reply