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: 1597
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: 1151
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: 1597
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: 18360
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: 1597
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: 1151
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
Post Reply