Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pauliuc

Pages: [1]
1
Graphics / Get the size of rotated sprite?
« on: October 22, 2010, 02:40:44 pm »
Hi,

is there a way to retrieve the width and height of a rotated sprite? Not the original one.

Thanks.

2
Window / C++ problem with sf::Event::TextEntered
« on: October 02, 2010, 03:31:26 pm »
It works with Lupinus suggested way  :)
Quote


Meaning that Event.Key.Code is to use only when a KeyEvent occurs, not a TextEvent !


im not using it when text event occurs... im using it when KeyPressed occurs.

3
Window / C++ problem with sf::Event::TextEntered
« on: September 30, 2010, 07:07:47 pm »
thanks i will try that  :wink:

4
Window / C++ problem with sf::Event::TextEntered
« on: September 30, 2010, 05:43:05 pm »
Hello all,

i am making a text box, and a small problem occured.

Code: [Select]
if( event.Type == sf::Event::KeyPressed )
{
       if( event.Key.Code == sf::Key::Back )
       {
            text.erase( text.size( ) - 1 );
       }
       else if( event.Key.Code == sf::Key::Return )
       {
            text += "\n";
       }
}
else if( event.Type == sf::Event::TextEntered )
{
      text += ( char )event.Text.Unicode;
}


The problem is that sf::Key::Back is ignored, when i type text. I figured out that its the problem with sf::Event::TextEntered because it takes backspace as text entered( ? ). How can i avoid that?

Pages: [1]
anything