C++11 improvements in Mac event-input code
This commit is contained in:
parent
09918a6862
commit
8b72229ffd
1 changed files with 6 additions and 6 deletions
|
@ -94,10 +94,10 @@ static std::string nameForUsage(uint32_t usagePage, uint32_t usage)
|
|||
class FGMacOSXEventInputPrivate
|
||||
{
|
||||
public:
|
||||
IOHIDManagerRef hidManager;
|
||||
FGMacOSXEventInput* p;
|
||||
double currentDt;
|
||||
int currentModifiers;
|
||||
IOHIDManagerRef hidManager = nullptr;
|
||||
FGMacOSXEventInput* p = nullptr;
|
||||
double currentDt = 0.0;
|
||||
int currentModifiers = 0;
|
||||
|
||||
void matchedDevice(IOHIDDeviceRef device);
|
||||
void removedDevice(IOHIDDeviceRef device);
|
||||
|
@ -170,8 +170,8 @@ private:
|
|||
|
||||
std::string nameForHIDElement(IOHIDElementRef element) const;
|
||||
|
||||
IOHIDDeviceRef _hid;
|
||||
IOHIDQueueRef _queue;
|
||||
IOHIDDeviceRef _hid = nullptr;
|
||||
IOHIDQueueRef _queue = nullptr;
|
||||
FGMacOSXEventInputPrivate* _subsystem;
|
||||
|
||||
typedef std::map<std::string, IOHIDElementRef> NameElementDict;
|
||||
|
|
Loading…
Reference in a new issue