Skip to content

Commit

Permalink
front: Little tweak to diagnostic output.
Browse files Browse the repository at this point in the history
  • Loading branch information
littleguy77 committed Jan 17, 2013
1 parent f4d4a05 commit 6a1982e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package paulscode.android.mupen64plusae.input;

import java.util.Locale;

import paulscode.android.mupen64plusae.R;
import paulscode.android.mupen64plusae.input.provider.AbstractProvider;
import paulscode.android.mupen64plusae.persistent.AppData;
Expand Down Expand Up @@ -92,9 +94,10 @@ private boolean onMotion( MotionEvent event )
{
int axis = range.getAxis();
String name = MotionEvent.axisToString( axis );
String source = DeviceUtil.getSourceName( range.getSource() );
double value = event.getAxisValue( axis );
message += "\n" + name + " (" + source + "): " + value;
String source = DeviceUtil.getSourceName( range.getSource() ).toLowerCase(
Locale.ENGLISH );
float value = event.getAxisValue( axis );
message += String.format( "\n%s (%s): %+.2f", name, source, value );
}
else
{
Expand Down

0 comments on commit 6a1982e

Please sign in to comment.