Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightweight, cross-platform input library

Tags:

input

I'm trying to write a game with support for Joypads as well as mouse/keyboard. I've tried finding information about that, but it's either outdated or not portable enough.

Does anybody know of any good, lightweight libraries that can abstract Joypad reading? I want to use the 360 controller, but I would like support for more than that.

I'm primarily going to be writing on Windows, but I really don't want to use DirectInput/XInput, in case I ever wish to port my code.

like image 817
Andrei Krotkov Avatar asked May 01 '09 17:05

Andrei Krotkov


2 Answers

Have you ever tryied OIS (Object Oriented Input System)? An efficient and light weight library. I am very satisfied with it.

I have never tried with the 360 controller, but it should work fine.

like image 139
Khalid Salomão Avatar answered Jan 15 '23 00:01

Khalid Salomão


This maybe an older question and is already answered but..

Someone on tigsource made a lightweight cross-platform gamepad library that you might find useful.

You can view the post on it here.

like image 25
Cory Avatar answered Jan 14 '23 23:01

Cory