Changeset 1102 for trunk/src/org/expeditee/stats/SessionStats.java
- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/stats/SessionStats.java
r919 r1102 19 19 package org.expeditee.stats; 20 20 21 import java.awt.event.KeyEvent;22 import java.awt.event.MouseEvent;23 21 import java.sql.Time; 24 22 import java.util.ArrayList; … … 27 25 import java.util.List; 28 26 29 import org.expeditee.gui.DisplayIO; 27 import org.expeditee.gio.input.KBMInputEvent; 28 import org.expeditee.gui.DisplayController; 30 29 import org.expeditee.gui.Frame; 31 import org.expeditee.gui.FrameMouseActions;32 30 import org.expeditee.gui.FrameUtils; 33 31 import org.expeditee.gui.TimeKeeper; … … 103 101 stats.append(getCharacterStats()); 104 102 105 stats.append("Version: ").append(Display IO.TITLE);103 stats.append("Version: ").append(DisplayController.TITLE); 106 104 107 105 return stats.toString(); … … 159 157 chars += counts[i]; 160 158 161 chars -= counts[ KeyEvent.VK_BACK_SPACE];162 chars -= counts[ KeyEvent.VK_DELETE];159 chars -= counts[Text.BACKSPACE_CHARACTER]; 160 chars -= counts[Text.DELETE_CHARACTER]; 163 161 164 162 int EOS = counts['.'] + counts[','] + counts['!'] + counts['?']; … … 177 175 appendStat(stats, "Escape", _EscapeCount); 178 176 appendStat(stats, "Backspace", _BackspaceCount); 179 appendStat(stats, "Left", _MouseCounters[ MouseEvent.BUTTON1]);180 appendStat(stats, "Middle", _MouseCounters[ MouseEvent.BUTTON2]);181 appendStat(stats, "Right", _MouseCounters[ MouseEvent.BUTTON3]);177 appendStat(stats, "Left", _MouseCounters[KBMInputEvent.MouseButton.LEFT.ordinal()]); 178 appendStat(stats, "Middle", _MouseCounters[KBMInputEvent.MouseButton.MIDDLE.ordinal()]); 179 appendStat(stats, "Right", _MouseCounters[KBMInputEvent.MouseButton.RIGHT.ordinal()]); 182 180 183 181 return stats.toString(); … … 231 229 * ascii value for the typed character 232 230 */ 233 public static void TypedChar(int ch) {234 if (ch == KeyEvent.VK_BACK_SPACE || ch == KeyEvent.VK_DELETE)235 231 public static void TypedChar(int ch) 232 { 233 if (ch == ((int) Text.BACKSPACE_CHARACTER) || ch == ((int) Text.DELETE_CHARACTER)) _BackspaceCount++; 236 234 UserEvent(); 237 235 _CharCounts[ch]++; … … 252 250 253 251 _FrameEvents.add(Formatter.getTimeWithMillis(elapsedTime) + " " 254 + Display IO.getMouseX() + " " + FrameMouseActions.getY() + " "252 + DisplayController.getMouseX() + " " + DisplayController.getMouseY() + " " 255 253 + description); 256 254 } … … 278 276 } 279 277 280 public static void MouseClicked( intbutton) {278 public static void MouseClicked(KBMInputEvent.MouseButton button) { 281 279 UserEvent(); 282 _MouseCounters[button ]++;280 _MouseCounters[button.ordinal()]++; 283 281 } 284 282
Note:
See TracChangeset
for help on using the changeset viewer.