Search found 441 matches

by coco2
Tue Dec 02, 2025 10:12 pm
Forum: Feature Requests and Wishlists
Topic: Updated controller support
Replies: 12
Views: 757

Re: Updated controller support

Why does SDL2 correctly detect one controller with the correct name "Xbox One S Controller"?
by coco2
Tue Dec 02, 2025 9:33 pm
Forum: Feature Requests and Wishlists
Topic: Updated controller support
Replies: 12
Views: 757

Re: Updated controller support

When connecting an Xbox One controller via bluetooth it's seen as two controllers:

Code: Select all

Initialise: number of joysticks: 2
  Joystick 0: Bluetooth LE XINPUT compatible input device
  Joystick 1: XBox 360 controller 1
How do we fix that?
by coco2
Wed Nov 26, 2025 8:33 pm
Forum: Feature Requests and Wishlists
Topic: Updated controller support
Replies: 12
Views: 757

Re: Updated controller support

I tried working with SDL2 but I couldn't get it to read the GUID of the controller. If I had the GUID I could remember configurations every time the controller is connected. But I couldn't work out how to do that.
by coco2
Tue Nov 25, 2025 9:49 pm
Forum: Feature Requests and Wishlists
Topic: Updated controller support
Replies: 12
Views: 757

Re: Updated controller support

Hi Kenmo,
I still have the SDL2 wrapper but I would prefer if PureBasic had a good library built in, because I'm not so good at working with external libraries. I will take a look at your SDL3 wrapper, thank you.
by coco2
Tue Nov 25, 2025 8:51 am
Forum: Feature Requests and Wishlists
Topic: Updated controller support
Replies: 12
Views: 757

Re: Updated controller support

Thanks for the tip, I didn't know that pad meant access to all of the controls.
by coco2
Tue Nov 25, 2025 8:30 am
Forum: Feature Requests and Wishlists
Topic: Updated controller support
Replies: 12
Views: 757

Updated controller support

The current controller/joystick support reads 3 analogue axes, but all modern controllers have 6 (left stick, right stick and triggers). Also there are more buttons I think.
by coco2
Thu Mar 20, 2025 10:16 pm
Forum: Coding Questions
Topic: Flickering in GUI application
Replies: 11
Views: 703

Re: Flickering in GUI application

I am using a full screen canvas so I can capture the mouse dragging. Unless there is some other way of capturing dragging?
by coco2
Thu Mar 20, 2025 10:11 pm
Forum: Coding Questions
Topic: Flickering in GUI application
Replies: 11
Views: 703

Re: Flickering in GUI application

Is there any way of capturing mouse button down (not click) on the window without a gadget?
by coco2
Thu Mar 20, 2025 10:07 pm
Forum: Coding Questions
Topic: Flickering in GUI application
Replies: 11
Views: 703

Re: Flickering in GUI application

It's OK, my entire code is ~5000 lines.

I think the problem is I am drawing a full screen canvas then drawing all my gadgets on top of that.

I will try to do it another way. And also I will try to draw to an image and paste the image on the window.
by coco2
Thu Mar 20, 2025 9:26 pm
Forum: Coding Questions
Topic: Flickering in GUI application
Replies: 11
Views: 703

Re: Flickering in GUI application


Procedure WindowResize()
Protected width.i = WindowWidth(0)
Protected height.i = WindowHeight(0)
StartDrawing(CanvasOutput(0))
Box(0, 0, 130, 300, RGB(200, 200, 200))
StopDrawing()
ResizeGadget(1, 150, 0, Width-150, height)
StartDrawing(CanvasOutput(0))
Box(0, 0, 130, 50, RGB(255, 0, 0 ...
by coco2
Thu Mar 20, 2025 9:35 am
Forum: Coding Questions
Topic: Flickering in GUI application
Replies: 11
Views: 703

Re: Flickering in GUI application

I'm making custom gadgets using drawing functions like Box() and Line() etc. When I resize parts of the application they flickers as they are being redrawn as the mouse moves. Also resizing the entire window they flicker. I could create a sample if you really want it but it would take some time.
by coco2
Thu Mar 20, 2025 7:47 am
Forum: Coding Questions
Topic: Flickering in GUI application
Replies: 11
Views: 703

Flickering in GUI application

What's the best way to stop flickering in a GUI application? Can it be double buffered and vsynced?
by coco2
Tue Mar 18, 2025 11:09 pm
Forum: Mac OSX
Topic: Application icon too big
Replies: 1
Views: 1615

Application icon too big

Why is my application icon bigger than all the other icons? Why is the PureBasic icon bigger than everything else for that matter?
by coco2
Tue Mar 18, 2025 10:05 pm
Forum: Linux
Topic: Detect dark mode
Replies: 1
Views: 1505

Detect dark mode

I've been using this code:


Procedure.i isDarkModeLinux()
Protected boolVal.i, *Settings
*Settings = gtk_settings_get_default_()
If *Settings
g_object_get_(*Settings, "gtk-application-prefer-dark-theme", @boolVal);
ProcedureReturn boolVal
EndIf
EndProcedure


But recently it's been giving ...
by coco2
Tue Mar 18, 2025 12:26 am
Forum: Coding Questions
Topic: Detect a keypress in an editor gadget
Replies: 2
Views: 294

Re: Detect a keypress in an editor gadget

Thanks firace

Code: Select all

EventType() = #PB_EventType_Change