From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.52.253 with SMTP id t58mr6072031otd.106.1475510055803; Mon, 03 Oct 2016 08:54:15 -0700 (PDT) X-Received: by 10.157.51.3 with SMTP id f3mr1428623otc.4.1475510055758; Mon, 03 Oct 2016 08:54:15 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!1.eu.feeder.erje.net!feeder.erje.net!2.us.feeder.erje.net!weretis.net!feeder6.news.weretis.net!news.glorb.com!l13no1840682itl.0!news-out.google.com!w143ni5441itb.0!nntp.google.com!l13no1840678itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 3 Oct 2016 08:54:15 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=79.182.0.48; posting-account=gqw3dgoAAAC1n0FUnjZEhXcW3umVS9pY NNTP-Posting-Host: 79.182.0.48 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1db7f76e-ce12-43ac-b31f-fc84f9c3be77@googlegroups.com> Subject: ANN: Thick bindings for the Linux joystick API From: artium@nihamkin.com Injection-Date: Mon, 03 Oct 2016 15:54:15 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:31977 Date: 2016-10-03T08:54:15-07:00 List-Id: 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