Advertisement

dinput for linux?

Started by December 18, 2000 03:14 PM
8 comments, last by overlord 24 years ago
is something similar to dinput for linux?... i mean, if im making a game, and i need fast response time from the keyboard or mouse, what should i use?
Isn''t dinput a wrapper? I''m not sure if you *want*
that kind of approach for `fast'' responses.

If you want to write a game with the lowest-level
(`direct'') IO I would recommend using XLib.

It''s the lowest level language for the X Window system
that Linux uses IO for mouse and keyboard ...for joystick
use libjsw.

If you really want to use a wrapper like dinput I
would recommend an SDL, however this wouldn''t be
in any ways fast.
Tara Milana - WP Entertainmenthttp://wolfpack.twu.net/Comp graphics artist and programmer.
Advertisement
thanks for your answer...

do you know that does loki uses for the games they port to linux?
Loki uses, and in fact, created SDL.

And yes, i''m sure using Xlib is faster (SDL is a wrapper, after all), though i''ve never had problems with SDL''s speed in that regard.

-ben.c
I''d strongly suggest SDL over Xlib if you are a first
time coder. Xlib is quite low-level and requires you
to know a lot.

SDL isn''t *too* slow in my opinion but I''ve heard of
players whine and pout about its laggyness.

Only realy limitation to SDL is that it might give you
problems when writing multi client network games,
those that require multiple graphical and sound
processes.
Tara Milana - WP Entertainmenthttp://wolfpack.twu.net/Comp graphics artist and programmer.
I''d be interested in something like the sdl libs. Where could I get them?
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
Advertisement
www.libsdl.org

I was thinking that I''d maybe write a few basic tutorials on getting started with SDL? In fact I almost already finished one (I was _bored_ ). Anyone interested?

"This album was written, recorded and edited at Gröndal, Stockholm in the year of 2000. At this point in time money still ruled the world. Capitalistic thoughts were wide spread. From the sky filled with the fumes of a billionarie''s cigar to the deepest abyss drenched in nuclear waste. A rich kid was a happy kid, oh..dirty, filthy times. Let this be a reminder."
- Fireside, taken from back of the Elite album
yeah, i think it would be great to have some tutorials about sdl
Yes Definatly!!! I''m working on several projects that are cross platform Win32 and Linux. I''ve got the linux version of the base code almost complete and I''m starting to learn the Linux stuff. The rest of the code is all just c/c++ and OGL and that''s all already (with a few compiler quirks) portable.
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
Well, I guess I''ll start writing then. I''m not promising anything though, if things turn out fairly well I''ll post them here...if they suck, well you do the math

"This album was written, recorded and edited at Gröndal, Stockholm in the year of 2000. At this point in time money still ruled the world. Capitalistic thoughts were wide spread. From the sky filled with the fumes of a billionarie''s cigar to the deepest abyss drenched in nuclear waste. A rich kid was a happy kid, oh..dirty, filthy times. Let this be a reminder."
- Fireside, taken from back of the Elite album

This topic is closed to new replies.

Advertisement