summaryrefslogtreecommitdiffstats
path: root/3rdparty/bgfx/examples/common/entry/input.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/common/entry/input.cpp')
-rw-r--r--3rdparty/bgfx/examples/common/entry/input.cpp10
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)