From 5b5eea2969da00ae592cb6b7e036016b394f8002 Mon Sep 17 00:00:00 2001 From: Jonathan Whiting Date: Tue, 22 Jul 2014 11:33:37 +0100 Subject: [PATCH] Fixed indentation --- examples/c/test_responsiveness.c | 72 ++++++++++++++++---------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/examples/c/test_responsiveness.c b/examples/c/test_responsiveness.c index 7af6e74b..dd2a586f 100644 --- a/examples/c/test_responsiveness.c +++ b/examples/c/test_responsiveness.c @@ -1,7 +1,7 @@ /** * PS Move API - An interface for the PS Move Motion Controller * Copyright (c) 2014 Jonathan Whiting - * All rights reserved. + * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -37,51 +37,51 @@ int convert_accel_to_col(int accel) { - accel = (accel*256)/35000; - if(accel < 0) accel = 0; - if(accel > 255) accel = 255; - return accel; + accel = (accel*256)/35000; + if(accel < 0) accel = 0; + if(accel > 255) accel = 255; + return accel; } int main(int argc, char* argv[]) { - int i, c; - c = psmove_count_connected(); - printf("Connected controllers: %d\n", c); - if(c==0) - return 1; + int i, c; + c = psmove_count_connected(); + printf("Connected controllers: %d\n", c); + if(c==0) + return 1; - PSMove **moves = (PSMove **)malloc(sizeof(PSMove *)*c); + PSMove **moves = (PSMove **)malloc(sizeof(PSMove *)*c); - for(i=0; i