Explorar el Código

Merge branch 'master' of github.com:bkaradzic/bgfx

bkaradzic hace 12 años
padre
commit
ec7154a214
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      examples/common/processevents.h

+ 4 - 0
examples/common/processevents.h

@@ -12,6 +12,10 @@ struct MouseState
 		: m_mx(0)
 		, m_my(0)
 	{
+		for (uint32_t ii = 0; ii < entry::MouseButton::Count; ++ii)
+		{
+			m_buttons[ii] = entry::MouseButton::None;
+		}
 	}
 
 	uint32_t m_mx;