1 // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
2 // Jad home page: http://www.kpdus.com/jad.html
3 // Decompiler options: packimports(3) fieldsfirst nonlb space
7 import java.awt.event.*;
8 import java.io.IOException;
9 import java.io.PrintStream;
11 // Referenced classes of package mcsClient:
12 // McsTcpConnection, LiveVideoPanel
14 public class McsMouseAdapter extends MouseAdapter
15 implements MouseWheelListener {
17 private McsTcpConnection mcsTcpConnection;
18 private LiveVideoPanel liveVideoPanel;
20 public McsMouseAdapter(McsTcpConnection mcstcpconnection, LiveVideoPanel livevideopanel) {
21 mcsTcpConnection = mcstcpconnection;
22 liveVideoPanel = livevideopanel;
25 public void mouseWheelMoved(MouseWheelEvent mousewheelevent) {
26 int ai[] = new int[4];
27 ai[0] = ai.length * 4;
30 ai[3] = mousewheelevent.getWheelRotation();
32 mcsTcpConnection.sendMessage(ai);
34 catch (IOException ioexception) {
35 System.err.println("Could not send wheel mouse event.");
39 public void mousePressed(MouseEvent mouseevent) {
40 int ai[] = new int[4];
41 ai[0] = ai.length * 4;
44 ai[3] = mouseevent.getModifiersEx();
46 mcsTcpConnection.sendMessage(ai);
48 catch (IOException ioexception) {
49 System.err.println("Could not send send mouse event McsMouseAdapter.");
52 liveVideoPanel.requestFocusInWindow();
55 public void mouseReleased(MouseEvent mouseevent) {
56 int ai[] = new int[4];
57 ai[0] = ai.length * 4;
60 ai[3] = mouseevent.getModifiersEx();
62 mcsTcpConnection.sendMessage(ai);
64 catch (IOException ioexception) {
65 System.err.println("Could not send send mouse event McsMouseAdapter.");
70 public void mouseEntered(MouseEvent mouseevent) {
71 int ai[] = new int[5];
72 ai[0] = ai.length * 4;
75 ai[3] = mouseevent.getX();
76 ai[4] = mouseevent.getY();
78 mcsTcpConnection.sendMessage(ai);
80 catch (IOException ioexception) {
81 System.err.println("Could not send send mouse event McsMouseAdapter.");
86 public void mouseExited(MouseEvent mouseevent) {
87 int ai[] = new int[3];
88 ai[0] = ai.length * 4;
92 mcsTcpConnection.sendMessage(ai);
94 catch (IOException ioexception) {
95 System.err.println("Could not send send mouse event McsMouseAdapter.");