Package com.wiieditor.wiimote

Examples of com.wiieditor.wiimote.IRPoint


    @Override
    public void irMoved(IRPoint point) {
        if ( entryImage==null )
            initImage();
        IRPoint interpolatedPoint=WiiMoteHelper.interpolateIRPoint(point, getWidth(), getHeight());
       
        entryGraphics.setColor(Color.black);
        entryGraphics.drawLine(lastX,lastY,(int)interpolatedPoint.getX(),(int)interpolatedPoint.getY());
        getGraphics().drawImage(entryImage,0,0,this);
        lastX = (int)interpolatedPoint.getX();
        lastY = (int)interpolatedPoint.getY();
    }
View Full Code Here


    @Override
    public void irStarted(IRPoint point) {
        log.debug("IR STARTED");
        clear();
       
        IRPoint interpolatedPoint=WiiMoteHelper.interpolateIRPoint(point, getWidth(), getHeight());
        lastX = (int)interpolatedPoint.getX();
        lastY = (int)interpolatedPoint.getY();
    }
View Full Code Here

TOP

Related Classes of com.wiieditor.wiimote.IRPoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.