Recent

Author Topic: Gamepad controlling IDE on Linux  (Read 2550 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Gamepad controlling IDE on Linux
« on: February 14, 2019, 11:43:30 am »
As an experiment I set up a cheap USB-connected gamepad to control the IDE, and found that it made life much more comfortable when doing a lot of single-stepping etc.; I've documented it at the link below.

http://wiki.freepascal.org/Lazarus_IDE_with_Gamepad_on_Linux

I've blagged a gamer's keypad on eBay and will write up the results if they look encouraging.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

sash

  • Sr. Member
  • ****
  • Posts: 366
Re: Gamepad controlling IDE on Linux
« Reply #1 on: February 14, 2019, 12:19:22 pm »
Once I configured wheel's pedals to control scrolling :)
Lazarus 2.0.10 FPC 3.2.0 x86_64-linux-gtk2 @ Ubuntu 20.04 XFCE

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Gamepad controlling IDE on Linux
« Reply #2 on: February 14, 2019, 12:32:11 pm »
The utility I used is extremely flexible but neither easy to use nor well-documented. I was able to set up the directional pad as buttons, but the "obvious" way is broken and while I can see what changes are needed to fix it my C (and understanding of how the author did things) isn't up to it.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Gamepad controlling IDE on Linux
« Reply #3 on: February 19, 2019, 10:59:07 am »
Thank-you to remind me that I have to add the possibility to use game controllers to control the GUI of my game engine.  I forgot it! :-[
« Last Edit: February 19, 2019, 11:00:47 am by Ñuño_Martínez »
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Gamepad controlling IDE on Linux
« Reply #4 on: February 20, 2019, 07:01:55 pm »
I've added another page with a script for working with a Belkin/Razer Nostromo keypad.

http://wiki.freepascal.org/Lazarus_IDE_with_Nostromo_Keypad_on_Linux

I've not yet hooked IDE actions onto the wheel or directional pad, for the simple reason that the "obvious" actions haven't yet got shortcut key combinations associated with them.

In principle it should be possible to have multiple banks of mapping, but in practice sixteen buttons plus a wheel and pad are probably about as much as can be remembered easily... or put another way, it's left as an exercise for the reader :-)

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018