clearing text_buffer at the beginning of each update loop
This commit is contained in:
parent
2184955935
commit
d3e7128f87
@ -32,6 +32,7 @@ void Input::updateEvents(){
|
||||
m_closeRequested = false;
|
||||
m_hasBeenResized = false;
|
||||
m_delta_vertical_scroll = 0;
|
||||
m_buffer.clear();
|
||||
|
||||
if(m_mouseGrabbed)
|
||||
m_last_mouse_position = sf::Vector2i(m_window->getSize())/2;
|
||||
@ -184,7 +185,6 @@ void Input::setMouseGrabbed(bool isGrabbed)
|
||||
std::string Input::getText()
|
||||
{
|
||||
std::string t = m_buffer;
|
||||
m_buffer.clear();
|
||||
return t;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user