Fix a bug that caused force feedback to crash.
Use more C++ features.