Hi!

I have a panel that contains buttons for rotating along the + and - z,x axes.
I have used the Wakeuponelapsed frame behavior listener set to 0 frames.
A 0 frame means that it will listen as a new frame is drawn?

And as  part of it, I have another behavior that listens to a behavior with an ID:0x11.
It is in this behavior that I would like to  modify the parent transform3d of the 
current view platform.

My code is this:

 public void initialize() {
    super.initialize();
    x_angle = 0;
    y_angle = 0;
    //x_factor = .03;
    x_factor = .01;
    y_factor = .03;
    if ((flags & INVERT_INPUT) == INVERT_INPUT) {
       invert = true;
       x_factor *= -1;
       y_factor *= -1;
    }
  }




The  processstimulus method processes events with a 0x11 ID and sort those behaviors  
with an AWTEvent behavior.Button events are AWTevents?

Is there an ID for a ButtonEvent like the MouseEvent Below?
(eg .MouseEvent.mousedragged).

  public void processStimulus (Enumeration criteria)
  {
      WakeupCriterion wakeup;
      AWTEvent[] event;
      int id;
    //  Object bam;
      int dx, dy;

      while (criteria.hasMoreElements())
      {
         wakeup = (WakeupCriterion) criteria.nextElement();
         if (wakeup instanceof WakeupOnAWTEvent)
         {
            event = ((WakeupOnAWTEvent)wakeup).getAWTEvent();
            for (int i=0; i<event.length; i++)
            {
              System.out.println("EVENT: "+event[i]);
              processMouseEvent((MouseEvent) event[i]);


               if (((MouseEvent)event[i]).isControlDown())
               {
                    x_angle = 0.0;
                    y_angle = 0.0;
               }


      //         bam=((ActionEvent)event[i]).getSource();
        //       System.out.println("OBJ: "+bam+"\n");


               id = event[i].getID();

        //      System.out.println("AWT: "+id+"\n");



              if (buttonPress)
              {
                        if ((id == MouseEvent.MOUSE_DRAGGED) && 
!((MouseEvent)event[i]).isMetaDown() && !((MouseEvent)event[i]).isAltDown())
                        {

                                x = ((MouseEvent)event[i]).getX();
                                y = ((MouseEvent)event[i]).getY();



Thanks! I am stomped with this part... :(

__________________________________
www.edsamail.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to