Recent

Author Topic: I need a gamepad component, please!!  (Read 433 times)

rodimus111

  • New member
  • *
  • Posts: 6
I need a gamepad component, please!!
« on: October 20, 2019, 02:14:47 am »
I am comming crazy trying to looking for a gamepad component that can access to all gamepad buttons. For some reason I havent been able to install bare.game. I get errors when I tryed to install baredsgn.lpk
Is ther some other component that works fine?

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: I need a gamepad component, please!!
« Reply #1 on: October 20, 2019, 01:37:58 pm »
For every error there is a solution. Have you tried looking for installation guides or anything?

But you might find something usable with SDL or DirectX APIs, though using a whole game engine that does most of the things you need might be best idea (such as the bare.game, or castle engine etc).

MarkMLl

  • Full Member
  • ***
  • Posts: 224
Re: I need a gamepad component, please!!
« Reply #2 on: October 20, 2019, 06:36:27 pm »
What OS? Be warned that HID devices are notoriously fickle since it is very common to find them presenting an HID report descriptor which doesn't cover the entire range of buttons etc., which is why Windows typically needs a custom driver and the appropriate Linux kernel module needs device-specific "quirks".

MarkMLl
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.

avra

  • Hero Member
  • *****
  • Posts: 1717
    • Additional info
Re: I need a gamepad component, please!!
« Reply #3 on: October 20, 2019, 06:44:50 pm »
Is ther some other component that works fine?
You might try out TSdpoJoystick from https://wiki.freepascal.org/5dpo. Works on Windows and Linux. You can find it in OPM as Sdpo.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib