Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (497)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Simulating keyboard and mouse  (Read 1164 times)
0 Members and 1 Guest are viewing this topic.
Offline abayyari

Innocent Bystander




Java games rock!


« Posted 2004-02-07 20:57:16 »

Hi all, i'm trying to simulate my Java 3D virtual world to be able to take the user on a virtual tour of the environment. But to do this i need to be able to simulate the movement by passing in the coordinates to the program. Right now i have a Server that communicates with my application via a socket and sends it a stream of coordinates. How would i use these points to move the user around?  How can i trigger the keyboard or mouse behaviors in Java 3D by passing in the coordinates? or maybe there is a better way of doing this.  Huh

Thanks a lot.
Ahmed
Offline zingbat

Senior Member




Java games rock!


« Reply #1 - Posted 2004-02-07 21:50:50 »

You could think of extending the keyboard and mouse behaviours that are provided with the java3d utility classes. Another solution (probably better) is to examine the source of those behaviours and create your own that get information from a socket instead of getting it from awt events. It doesnt look that hard to do. Wink
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #2 - Posted 2004-02-08 23:22:17 »

java.awt.Robot

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline zingbat

Senior Member




Java games rock!


« Reply #3 - Posted 2004-02-12 20:53:55 »

Quote
java.awt.Robot



Are you on the competition for the weirdest post of the month ?
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (14 views)
2014-04-15 18:08:23

BurntPizza (12 views)
2014-04-15 03:46:01

UprightPath (25 views)
2014-04-14 17:39:50

UprightPath (11 views)
2014-04-14 17:35:47

Porlus (28 views)
2014-04-14 15:48:38

tom_mai78101 (50 views)
2014-04-10 04:04:31

BurntPizza (109 views)
2014-04-08 23:06:04

tom_mai78101 (209 views)
2014-04-05 13:34:39

trollwarrior1 (177 views)
2014-04-04 12:06:45

CJLetsGame (184 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!