Welcome, Guest. Please
login
or
register
.
Forums
Forums
Board
Topic
Home
Today's Posts
Gallery
Login
Register
Amiga.org
»
Operating System Specific Discussions
»
Amiga OS
»
Amiga OS -- Development
»
Need help ( Input.Device) { Example required }
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Need help ( Input.Device) { Example required } (Read 2511 times)
Description:
0 Members and 1 Guest are viewing this topic.
Thomas
Hero Member
Join Date: Jun 2002
Posts: 3396
Country:
Thanked: 22 times
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
Logged
Email:
thomas-rapp@web.de
Home:
thomas-rapp.hier-im-netz.de
Thomas
Hero Member
Join Date: Jun 2002
Posts: 3396
Country:
Thanked: 22 times
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
Logged
Email:
thomas-rapp@web.de
Home:
thomas-rapp.hier-im-netz.de
Print
Pages: [
1
]
Go Up
« previous
next »
Amiga.org
»
Operating System Specific Discussions
»
Amiga OS
»
Amiga OS -- Development
»
Need help ( Input.Device) { Example required }
There was an error while thanking
Thanking...