please dont rip this site

language java nosugar custom paddle code TestGamePaddle

// 
//	TestGamePaddle class
//	part of the set of documents known as Java no sugar.
//	Copyright (c) 1996 Sunil Gupta, sunil@magnetic.demon.co.uk
//	placed into the public domain by the author
//
import java.applet.*;
import java.awt.*;
import GamePaddle;

public class TestGamePaddle extends Applet
{
	GamePaddle button;
	int count = 0;
	
	public void init()
	{
		button = new GamePaddle();
		this.add(button);
	}
	
	public boolean action( Event e, Object arg)
	{
		int i;
		
		if (e.target == button)
		{
			GamePaddle obj = (GamePaddle) arg;
			
			showStatus("clicked " + count + ", direction = " + obj.direction() );
			count ++;
			return true;
		}
		
		return false;
	}
}

file: /Techref/language/java/nosugar/custom/paddle/code/TestGamePaddle.java, 0KB, , updated: 1996/10/31 01:24, local time: 2012/5/25 08:25,
TOP NEW HELP FIND: 
38.107.179.233:LOG IN

 ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/language/java/nosugar/custom/paddle/code/TestGamePaddle.java"> language java nosugar custom paddle code TestGamePaddle</A>

Did you find what you needed?

 
Stepper motors CAN be smooth!
And stepper controllers can be strong and cheap. Roman Black's Linistep stepper controller kits:
o 18th microstep
o Linear smoothing
  o Open source
o Full kit $25!
 

Robotics nuts!

Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.
The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .