Welcome, Guest. Please login or register.

Author Topic: Need help ( Input.Device) { Example required }  (Read 2511 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: Need help ( Input.Device) { Example required }
« on: September 28, 2006, 06:48:48 AM »
Why do you want to use input.device ? Usually an application has a window and you can use the window's IDCMP port to wait for input events.

Here is an example for how to use IDCMP for a game: http://thomas-rapp.homepage.t-online.de/examples/KeyJoy.c

And here is an example for drawing with the mouse: http://thomas-rapp.homepage.t-online.de/examples/draw.c

Edit: here is an example which waits for a mouse click using input.device (without a window): http://thomas-rapp.homepage.t-online.de/examples/WaitForClick.c

Bye,
Thomas

Offline Thomas

Re: Need help ( Input.Device) { Example required }
« Reply #1 on: September 29, 2006, 02:20:33 PM »

Unless you want to run on Kick 1.3 you should rather use a commodity for that.

Bye,
Thomas