comp.lang.ada
 help / color / mirror / Atom feed
From: artium@nihamkin.com
Subject: ANN: Thick bindings for the Linux joystick API
Date: Mon, 3 Oct 2016 08:54:15 -0700 (PDT)
Date: 2016-10-03T08:54:15-07:00	[thread overview]
Message-ID: <1db7f76e-ce12-43ac-b31f-fc84f9c3be77@googlegroups.com> (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


                 reply	other threads:[~2016-10-03 15:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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