PDA

View Full Version : handling the mouse



kryton9
30-11-2006, 23:31
I am not quite sure where to place this post, but thought will try here. Please move, if there is a more appropriate place.

In developing for games, directX provides the interface to everything, grfx, all sorts of input and of course sound.

we have tbgl for grfx, bass for sound, but how do we handle all of the input devices. For now I am thinking about first person type movment, using the keyboard and mouse, but eventually gamepads and joystick support would be nice. A friend and I were talking last night how cool would it be to have gloves that you wore that could sense your movements, could you imagine going into thinEdge and sculpting your model as if made from Clay. Maybe in coming years, but for now do we need to tie into an input library of some sort for this kind of stuff?

Petr Schreiber
01-12-2006, 00:20
Hi kryton9,

Eros will answer it more properly probably, but I have done some joystick handling using pure Win32 API.
This may sound disgusting ( :) ), but it was pretty easy to do. I will try to find the code and apply on thinBASIC.

Mouse is also basic stuff, using %WM_MOUSEMOVE, but I need to cooperate with Eros to make it fast in TBGL window, which is special case. But I am optimist.

Gloves... wow. I have no idea how much such a stuff cost, but it must be perfect for controlling movements.
Regarding more "nature" thinEdge modeling I'm thinking of some kind of ideal virtual "lathe" to create nicer models.
Just moving virtual lever up and down, and use user defined "knifes" of different shapes to cut the right groove into sculpted body.


Bye,
Petr