Search found 1667 matches

by Rescator
Thu Nov 13, 2014 2:29 am
Forum: Feature Requests and Wishlists
Topic: Add "no font mapper" switch to LoadFont()
Replies: 4
Views: 2763

Re: Add "no font mapper" switch to LoadFont()

But no, it seems that PureBasic has its own special way of handling fonts by using something called a "font mapper" . False! Do not blame PureBasic for the font mapping. It is the OS that does this, and which font is used varies depending on the installed OS language pack, and what font's...
by Rescator
Fri Nov 07, 2014 12:50 am
Forum: Tricks 'n' Tips
Topic: Gamepad (Web, HTML5)
Replies: 0
Views: 1771

Gamepad (Web, HTML5)

This is a companion to Gamepad (Windows 2000/XP/Vista/7/8/10) thread, only this is for W3C Gamepad standard compatible browsers. I'm also partly posting this here since I'm not regged on the SpiderBasic forums, and I'm very lazy. (Fred & Freak feel free to steal code from here for use in SpiderB...
by Rescator
Fri Oct 31, 2014 3:23 am
Forum: Coding Questions
Topic: PeekS() does not work properly in unicode mode under Windows
Replies: 15
Views: 6464

Re: PeekS() does not work properly in unicode mode under Win

1. Why does it perfectly work under Linux (i guess because Windows codepage)? 2. How can i get the same result on Windows as on Linux? To answer #1 Probably because Linux ditched Ascii ages ago in favour for Unicode. On Linux "Ascii" is really UTF8. On Windows Ascii is 7-bit. 8 bit string...
by Rescator
Fri Oct 31, 2014 2:43 am
Forum: Tricks 'n' Tips
Topic: Gamepad (Windows 2000/XP/Vista/7/8/10)
Replies: 3
Views: 3149

Re: Gamepad

Edited the code a little to add a quick fix. A centering issue seems to occur on some gamepads, possible cause is that the game pad reports a signed value but the center is both 0 and 1 or 0 and -1, instead of just 0, after calibration the 1 or -1 may be reversed, due to this the value 1 and -1 are ...
by Rescator
Thu Oct 30, 2014 5:38 am
Forum: Tricks 'n' Tips
Topic: Gamepad (Windows 2000/XP/Vista/7/8/10)
Replies: 3
Views: 3149

Gamepad (Windows 2000/XP/Vista/7/8/10)

Here are three ways to handle a gamepad on Windows. Hopefully this is a nice starting point for your own projects. The methods are Xinput and PureBasic (DirectInput). The DirectInput method has two different types supported. The mappings are based on my Speedlink STRIKE FX Gamepad (Model SL-6537-BK)...
by Rescator
Sun Aug 10, 2014 5:41 pm
Forum: Feature Requests and Wishlists
Topic: I wish for a better quality Linux compiler.
Replies: 14
Views: 5798

Re: I wish for a better quality Linux compiler.

You may not have noticed this but Fred (and Freak) has said in the past that feature parity is one of the main goals for the PureBasic cross-platform releases.
by Rescator
Sun Aug 10, 2014 5:37 pm
Forum: Assembly Programming
Topic: linasm library
Replies: 4
Views: 4117

Re: linasm library

The example is still interesting (hence me referencing the other thread), in that thread the solution I post near the end is one of the fastest asm implementations like that.
And the example you showed is very similar which hopefully reflect the rest of the stuff as being equally well optimized.
by Rescator
Sun Aug 10, 2014 5:30 pm
Forum: Announcement
Topic: Support for Ascii compilation ends after the next LTS cycle
Replies: 94
Views: 89142

Re: Support for Ascii compilation ends after the next LTS cy

Per wikipedia Linux moved to UTF32 (not exactly the same as UCS-4) some time ago. And Windows moved to UTF16 which Windows 2000 (not the same as UCS-2 which NT4 and earlier supported). Just in theory UTF-8 and UTF-16 have similar overhead, the advantage though is that with UTF-16 the majority of the...
by Rescator
Sun Aug 10, 2014 5:05 pm
Forum: Tricks 'n' Tips
Topic: Window Image Capture (Snapshot)
Replies: 1
Views: 1556

Window Image Capture (Snapshot)

I was looking into adding a window capture feature to a project here, this could be used to capture a window and save it as a image. Nice for debugging or users reporting errors or issues. I got some of the ideas from another thread , but ended up re-writing the capture code. There are 4 modes you c...
by Rescator
Sat Aug 09, 2014 8:43 pm
Forum: Announcement
Topic: Support for Ascii compilation ends after the next LTS cycle
Replies: 94
Views: 89142

Re: Support for Ascii compilation ends after the next LTS cy

Wow, talk about not being able to please everybody! :shock: I'll tell you what... Since Fred wants to do unicode then I suggest he make a new version and charge $100 for it. Those that don't want unicode can use the old version and the rest of us can make the donation we should have been making ove...
by Rescator
Sat Aug 09, 2014 8:39 pm
Forum: Announcement
Topic: Support for Ascii compilation ends after the next LTS cycle
Replies: 94
Views: 89142

Re: Support for Ascii compilation ends after the next LTS cy

Are you addressing Fred and Freak here too? C'mon already, they admitted it was a large piece of work to convert the IDE recently to Unicode and there is not full acceptance from some of the UTF8 fans. If I where addressing them I would address them directly, and I did not, so I did not. Why Freak ...
by Rescator
Sat Aug 09, 2014 8:18 pm
Forum: Announcement
Topic: Support for Ascii compilation ends after the next LTS cycle
Replies: 94
Views: 89142

Re: Support for Ascii compilation ends after the next LTS cy

Rescator, I think you misunderstood my post or I wasn't clear enough, because you are telling me things already knew and you didn't answer my question. I'll try to rephrase that... Ah, stupid me. Right. In theory yes you have the right idea. But in reality I have no idea if that is correct though. ...
by Rescator
Sat Aug 09, 2014 6:13 pm
Forum: Announcement
Topic: Support for Ascii compilation ends after the next LTS cycle
Replies: 94
Views: 89142

Re: Support for Ascii compilation ends after the next LTS cy

I wondering... would be wise to continue to use SizeOf(Character), StringByteLength() and similar constructs to be able to support in future maybe unicode encodings not exactly 2 bytes in len or is ok to simply consider a char len = 2 like you did for ascii with char len = 1 ? This when you know yo...
by Rescator
Sat Aug 09, 2014 6:05 pm
Forum: Announcement
Topic: Support for Ascii compilation ends after the next LTS cycle
Replies: 94
Views: 89142

Re: Support for Ascii compilation ends after the next LTS cy

Does certain people here have an axe to grind? It certainly seems that way. Instead of PB 5.40 having the change the next LTS will instead (hilarious if that turns out to be 5.30 though). A new LTS will continue when the old stopped so if current LTS (5.2x) ends in 2015, and the next LTS will last 2...