comp.lang.ada
 help / color / mirror / Atom feed
* ANN: Thick bindings for the Linux joystick API
@ 2016-10-03 15:54 artium
  0 siblings, 0 replies; only message in thread
From: artium @ 2016-10-03 15:54 UTC (permalink / raw)


Hi,

Thick bindings for the Linux joystick API are available at: https://github.com/alkhimey/Ada_Joystick 

The highlight are typed axes/buttons:

   type Logiteck_Extreme_3D_Pro_Axis_Type is
      (STICK_X, STICK_Y, STICK_Z, THROTTLE, HAT_X, HAT_Y);

   type Logiteck_Extreme_3D_Pro_Button_Type is 
      (BUTTON_01, BUTTON_02, BUTTON_03, BUTTON_04,
       BUTTON_05, BUTTON_06, BUTTON_07, BUTTON_08,
       BUTTON_09, BUTTON_10, BUTTON_11, BUTTON_12);

   
   package L3D is new Linux_Joystick(Button_Type => Logiteck_Extreme_3D_Pro_Button_Type,
                                     Axis_Type   => Logiteck_Extreme_3D_Pro_Axis_Type);


I wrote this as an exercise, no specific use cases in mind. 

If you are developing graphic application, the framework you use (GLUT, GLFW etc.) might already have joystick input functionality that is cross platform.




Not sure what ANN stands for, but I deduce that it appears on posts with announcements of new Ada libraries.




Best Regards,
Artium


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-03 15:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-03 15:54 ANN: Thick bindings for the Linux joystick API artium

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox