LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-31-2006, 11:11 PM   #1
Omni
Member
 
Registered: Sep 2003
Posts: 54

Rep: Reputation: 15
Looking for cross platform Input API (mouse, joystick, keyboard)


Hey all,

A friend and I are working on making a 3D multiplayer online game, and I need a cross platform API for mouse, keyboard, and joystick support. I've found Simple DirectMedia Layer, but I really don't need its graphics and sound systems. If I could find just an input API, that would make me happy.

Any suggestions? Even if its just key words for googling.

Thanks in advance,
Omni
 
Old 11-01-2006, 03:56 AM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
Personally I think you have already found your answer yet you have dismissed it.
Quote:
...but I really don't need its graphics and sound systems
Simple then don't use these functionalities, instead intergrate OpenGL for graphics and Fmod or OpenAL for sound, for multiplayer you could use the SDL addon SDL_net or a better alternative is RakNet. SDL has alot of addons that will make life easier.
 
Old 11-01-2006, 01:36 PM   #3
Omni
Member
 
Registered: Sep 2003
Posts: 54

Original Poster
Rep: Reputation: 15
I know I can simply not use the functionality. But I'm picky and a minimalist. I'm simply looking for an API that does 1 thing well. Being part flight sim, I find this important to do well. I'm leaning towards using SDL anyway. I've also considered writing this as library module to hide the implimentation details. I'll come to a decision soon, but I think the Linux client may suffer for it... (sigh)
 
Old 11-01-2006, 07:17 PM   #4
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
i agree with dmail here. sdl just makes things too easy to not use it, atleast at the beginning stages.

smart thing to do would be to put an extra layer in there so that you can pull out sdl and put in something else or write your own later on.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Good keyboardless input systems for non-touchscreen STB with a mouse/joystick? AireTamStorm Linux - Software 1 07-20-2006 08:19 AM
Joystick Driver and API under kernel 2.6.12.3 using an USB joystick dispatcher Linux - Newbie 1 08-06-2005 09:43 AM
usb joystick as mouse or keyboard? tardigrade Linux - General 0 12-24-2004 06:14 PM
cross platform C or C++ API for linux and Win32 tcma Linux - Software 1 12-09-2004 11:05 PM
my mouse input is takes as keyboard input in BASH e1000 Slackware 5 12-08-2003 03:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration