Skip to content

Commit

Permalink
Non static members initialization compilation for Visual Studio 2012
Browse files Browse the repository at this point in the history
  • Loading branch information
Mat-Loz committed Jul 7, 2014
1 parent bd71e7c commit 1da88c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/ofxLeapMotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ void ofxLeapMotionSimpleHand::debugDraw(){
// ofxLeapMotion
//--------------------------------------------------------------
ofxLeapMotion::ofxLeapMotion(){
swipeSpeed = 0.0;
swipeDurationSeconds = 0.0;
swipeDurationMicros = 0.0;
reset();
resetMapping();
ourController = new Leap::Controller();
Expand Down
6 changes: 3 additions & 3 deletions src/ofxLeapMotion.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ class ofxLeapMotion : public Listener{
int iGestures;

// swipe data
float swipeSpeed = 0.0;
float swipeDurationSeconds = 0.0;
int64_t swipeDurationMicros = 0.0;
float swipeSpeed;
float swipeDurationSeconds;
int64_t swipeDurationMicros;

// circle data
float circleProgress;
Expand Down

0 comments on commit 1da88c0

Please sign in to comment.