|
1 | 1 | package de.scribble.lp.tasmod; |
2 | 2 |
|
3 | 3 | import org.lwjgl.input.Mouse; |
| 4 | +import org.lwjgl.opengl.Display; |
4 | 5 |
|
5 | 6 | import de.scribble.lp.tasmod.ticksync.TickSync; |
| 7 | +import de.scribble.lp.tasmod.virtual.VirtualKeys; |
| 8 | +import de.scribble.lp.tasmod.virtual.VirtualMouseAndKeyboard; |
6 | 9 | import net.minecraft.client.Minecraft; |
7 | 10 | import net.minecraft.client.gui.Gui; |
8 | 11 | import net.minecraft.client.gui.ScaledResolution; |
@@ -38,6 +41,19 @@ public void drawStuff(RenderGameOverlayEvent.Post event) { |
38 | 41 |
|
39 | 42 | new Gui().drawString(mc.fontRenderer, "Server Ticks: "+TickSync.getServertickcounter(), 16, 100, 0xFFFFFF); //Current Pointer location |
40 | 43 | new Gui().drawString(mc.fontRenderer, "Client Ticks: "+TickSync.getClienttickcounter(), 16, 110, 0xFFFFFF); //Current Pointer location |
| 44 | + |
| 45 | + if(Display.isActive()) { |
| 46 | + String out1=""; |
| 47 | + for(String mouse : VirtualMouseAndKeyboard.getCurrentMousePresses()) { |
| 48 | + out1=out1.concat(mouse+" "); |
| 49 | + } |
| 50 | + new Gui().drawString(mc.fontRenderer, out1, 5, height-20, 0xFFFFFF); //Current Pointer location |
| 51 | + String out2=""; |
| 52 | + for(String key : VirtualMouseAndKeyboard.getCurrentKeyboardPresses()) { |
| 53 | + out2=out2.concat(key+" "); |
| 54 | + } |
| 55 | + new Gui().drawString(mc.fontRenderer, out2, 5, height-10, 0xFFFFFF); //Current Pointer location |
| 56 | + } |
41 | 57 | new Gui().drawCenteredString(mc.fontRenderer, "TASmod is still in development! Major issues may arise!", width/2, height-50, 0xFF8400); //Current Pointer location |
42 | 58 |
|
43 | 59 | // } |
|
0 commit comments