Fix some vertical alignments

ie. uses spaces for alignment.
This commit is contained in:
Lioncash
2014-02-16 15:30:18 -05:00
parent 2a7a94387c
commit 6c4ee1753a
91 changed files with 1420 additions and 1405 deletions

View File

@ -23,10 +23,11 @@ private:
Key(IOHIDElementRef element, IOHIDDeviceRef device);
ControlState GetState() const;
private:
const IOHIDElementRef m_element;
const IOHIDDeviceRef m_device;
std::string m_name;
const IOHIDElementRef m_element;
const IOHIDDeviceRef m_device;
std::string m_name;
};
class Cursor : public Input
{
public:
@ -36,9 +37,10 @@ private:
ControlState GetState() const;
private:
const float& m_axis;
const u8 m_index;
const bool m_positive;
const u8 m_index;
const bool m_positive;
};
class Button : public Input
{
public:
@ -66,11 +68,11 @@ private:
float x, y;
} m_cursor;
const IOHIDDeviceRef m_device;
const std::string m_device_name;
int m_index;
uint32_t m_windowid;
unsigned char m_mousebuttons[3];
const IOHIDDeviceRef m_device;
const std::string m_device_name;
int m_index;
uint32_t m_windowid;
unsigned char m_mousebuttons[3];
};
}

View File

@ -117,8 +117,8 @@ Keyboard::Key::Key(IOHIDElementRef element, IOHIDDeviceRef device)
, m_device(device)
{
static const struct PrettyKeys {
const uint32_t code;
const char *const name;
const uint32_t code;
const char *const name;
} named_keys[] = {
{ kHIDUsage_KeyboardA, "A" },
{ kHIDUsage_KeyboardB, "B" },