-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[VirtualInput] Various documentation improvements
- Removed VirtualButtonEvent inner class in VirtualEvent
- Loading branch information
1 parent
7006c51
commit 5044ecd
Showing
9 changed files
with
71 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/java/com/minecrafttas/tasmod/virtual/VirtualKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
src/main/java/com/minecrafttas/tasmod/virtual/event/VirtualCameraAngleEvent.java
This file was deleted.
Oops, something went wrong.
42 changes: 19 additions & 23 deletions
42
src/main/java/com/minecrafttas/tasmod/virtual/event/VirtualEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,29 @@ | ||
package com.minecrafttas.tasmod.virtual.event; | ||
|
||
public class VirtualEvent { | ||
protected final int keycode; | ||
protected final boolean keystate; | ||
|
||
public static class VirtualButtonEvent extends VirtualEvent{ | ||
public VirtualEvent(int keycode, boolean keystate) { | ||
this.keycode = keycode; | ||
this.keystate = keystate; | ||
} | ||
|
||
protected final int keycode; | ||
protected final boolean keystate; | ||
|
||
public VirtualButtonEvent(int keycode, boolean keystate) { | ||
this.keycode = keycode; | ||
this.keystate = keystate; | ||
} | ||
public VirtualEvent(VirtualEvent event) { | ||
this.keycode = event.keycode; | ||
this.keystate = event.keystate; | ||
} | ||
|
||
public VirtualButtonEvent(VirtualButtonEvent event) { | ||
this.keycode = event.keycode; | ||
this.keystate = event.keystate; | ||
} | ||
public int getKeyCode() { | ||
return keycode; | ||
} | ||
|
||
public int getKeyCode() { | ||
return keycode; | ||
} | ||
public boolean isState() { | ||
return keystate; | ||
} | ||
|
||
public boolean isState() { | ||
return keystate; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.format("%s, %s", keycode, keystate); | ||
} | ||
@Override | ||
public String toString() { | ||
return String.format("%s, %s", keycode, keystate); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/main/java/com/minecrafttas/tasmod/virtual/event/VirtualMouseEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters