From b16a69d237838ec4a60ac64390e4e7080a054eb4 Mon Sep 17 00:00:00 2001 From: belal Date: Thu, 18 Feb 2010 15:41:39 -0500 Subject: [PATCH] Only display used hotkeys in the dump, changed the tabs to spaces, also I tested it on linux, works just fine :) Signed-off-by: belal --- examples/hotkeynotedump.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/hotkeynotedump.cpp b/examples/hotkeynotedump.cpp index cda81ab34..05117225f 100644 --- a/examples/hotkeynotedump.cpp +++ b/examples/hotkeynotedump.cpp @@ -48,8 +48,10 @@ int main (void) DF.ReadHotkeys(hotkeys); for(uint32_t i =0;i< NUM_HOTKEYS;i++) { - cout << "x: " << hotkeys[i].x << "\ty: " << hotkeys[i].y << "\tz: " << hotkeys[i].z << - "\ttext: " << hotkeys[i].name << endl; + if(hotkeys[i].mode != -1){ + cout << "x: " << hotkeys[i].x << " y: " << hotkeys[i].y << " z: " << hotkeys[i].z << + " text: " << hotkeys[i].name << endl; + } } DF.FinishReadNotes(); DF.Detach();