diff options
author | 2017-03-29 17:09:40 +0200 | |
---|---|---|
committer | 2017-03-29 17:09:40 +0200 | |
commit | 49f7c99c7786ce257fae28dfeae2f8ee5810424c (patch) | |
tree | 1bbd30dd4dd48596186846c2fc77a8dc748215d2 /3rdparty/bgfx/examples/common/entry/input.cpp | |
parent | 79f22e060b2c012d628d5d1d83288c1bb6e6acef (diff) |
Update BGFX and BX (nw)
Diffstat (limited to '3rdparty/bgfx/examples/common/entry/input.cpp')
-rw-r--r-- | 3rdparty/bgfx/examples/common/entry/input.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/3rdparty/bgfx/examples/common/entry/input.cpp b/3rdparty/bgfx/examples/common/entry/input.cpp index 697ef1e5e69..e90d05ebb47 100644 --- a/3rdparty/bgfx/examples/common/entry/input.cpp +++ b/3rdparty/bgfx/examples/common/entry/input.cpp @@ -35,7 +35,7 @@ struct InputMouse m_norm[2] = 0.0f; } - memset(m_buttons, 0, sizeof(m_buttons) ); + bx::memSet(m_buttons, 0, sizeof(m_buttons) ); } void setResolution(uint16_t _width, uint16_t _height) @@ -78,8 +78,8 @@ struct InputKeyboard void reset() { - memset(m_key, 0, sizeof(m_key) ); - memset(m_once, 0xff, sizeof(m_once) ); + bx::memSet(m_key, 0, sizeof(m_key) ); + bx::memSet(m_once, 0xff, sizeof(m_once) ); } static uint32_t encodeKeyState(uint8_t _modifiers, bool _down) @@ -130,7 +130,7 @@ struct InputKeyboard popChar(); } - memcpy(&m_char[m_ring.m_current], _char, 4); + bx::memCopy(&m_char[m_ring.m_current], _char, 4); m_ring.commit(4); } @@ -169,7 +169,7 @@ struct Gamepad void reset() { - memset(m_axis, 0, sizeof(m_axis) ); + bx::memSet(m_axis, 0, sizeof(m_axis) ); } void setAxis(entry::GamepadAxis::Enum _axis, int32_t _value) |