j3d.org Code

org.j3d.device.input.spaceball
Interface Spaceball3003CallbackInterface

All Known Implementing Classes:
Spaceball3003Driver

public interface Spaceball3003CallbackInterface

Interface for processing events sent from Labtec's Spaceball 3003/2003 device.

NOTE: Implementation not finished and not tested. Any feedback welcome.

Spaceball, Spaceball 2003 and Spaceball 3003 are Trademarks of Labtec Inc.

Version:
21. Aug. 2001 Copyright (c) Dipl. Ing. Paul Szawlowski
Author:
Dipl. Ing. Paul Szawlowski - University of Vienna, Dept. of Medical Computer Sciences

Method Summary
 void processDeviceInfoResponse(int type, int lineNumber, java.lang.String content)
           
 void processEchoResponse(byte[] data)
          Method to process echo respones.
 void processError(int errorCode, java.lang.String errorString)
          Method to process error responses.
 void processRequestResponse(int type)
           
 

Method Detail

processRequestResponse

public void processRequestResponse(int type)
Parameters:
type - use constants
  • Spaceball3003Packet.GET_REZERO_BALL

processDeviceInfoResponse

public void processDeviceInfoResponse(int type,
                                      int lineNumber,
                                      java.lang.String content)

processError

public void processError(int errorCode,
                         java.lang.String errorString)
Method to process error responses.

Parameters:
errorCode - use constants
  • Spaceball3003Packet.
  • Spaceball3003Packet.HARDWARE_ERROR_CODE_1
  • Spaceball3003Packet.CALIBRATION_CHECKSUM_ERROR_CODE
  • Spaceball3003Packet.HARDWARE_ERROR_CODE_2
  • Spaceball3003Packet.HARDWARE_ERROR_CODE_3
  • Spaceball3003Packet.TRANSMIT_TIMEOUT_ERROR_CODE
  • Spaceball3003Packet.RECEIVE_OVERFLOW_ERROR_ERROR_CODE
  • Spaceball3003Packet.RECEIVE_ERROR_CODE
  • Spaceball3003Packet.BEEPER_QUEUE_OVERFLOW_ERROR_CODE
  • Spaceball3003Packet.PACKET_TOO_LONG_ERROR_CODE

processEchoResponse

public void processEchoResponse(byte[] data)
Method to process echo respones.


j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org