Getting B3D to work with XInput?

Blitz3D Forums/Blitz3D Beginners Area/Getting B3D to work with XInput?

Well, getting somewhere, sloppily functioned it all, and there's a memory leak somewhere, which I'm blaming on my usage of banks, as I'm not exactly familiar with them, but I need to figure it out anyhow as it's killing the performance of the application.

Current state of the files (still not too familiar with setting up DLL declarations) :
Most recent progress posted below.


Went and looked at the actual Blitz joystick commands, and apparently the range on them goes from -1.0 to 1.0, hate to keep asking for help, but what's the math formula that would give me the equivalent of that with my 0-65535 range?
(regarding the bit conversion b32, wouldn't just subtracting 32767 from 65535 work, or do you lose precision that way?)


On a side note, can someone provide an example on how to add F1-able descriptions to home-brewed blitz functions? I know it's done via decls, but that's about it.