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 - theanzelm

Pages: [1]
1
Window / [Solved] getting input and put them into a string
« on: June 14, 2008, 05:32:52 pm »
I think non-international characters are not working because you cast to char instead of wchar_t or something similar.

Code: [Select]
inputField += (char)event.Text.Unicode

Also you should check if event.Text.Unicode returns a printable character:

Code: [Select]
if(event.Text.Unicode < 0x80){
    ...do something with char...
}


The backspace/return issue should be solved then.
(Check for them manually and remove the last character or add a "\n" to your string if you want the backspace/newline functionality)

I would be interested in the casting part too, what do I have to do with the Uint16 event.Text.Unicode gives me, to be able to append it to a string?

2
Graphics / MingW compiler errors with sfml-graphics
« on: May 01, 2008, 09:50:24 pm »
I got it fixed now.
I'm not sure which of my tries fixed it but I think it has something to do with the order you include libraries for the linker.

First keep the order like in the SFML-Code::Blocks tutorial, and put SFML-libraries after all other libraries you link.

3
Graphics / MingW compiler errors with sfml-graphics
« on: May 01, 2008, 08:36:10 pm »
Same problem here.

Anyone could help?
Would be great.

4
Window / Events have anonymous unions?!
« on: March 05, 2008, 04:45:26 pm »
aaahhh I'm so sorry the problem was somewhere else, i had

Event.type == sf::Event::MouseMove (without a "d" at the and)

 :oops:

really great lib!

5
Window / Events have anonymous unions?!
« on: March 05, 2008, 04:32:27 pm »
this is really strange:

Event.Key.Code

works for example only the MouseMove not

6
Window / Events have anonymous unions?!
« on: March 04, 2008, 06:31:00 pm »
I'm using Dev-C++ which uses minGW which uses gcc i think.

No I'm not using sf namespace I always write sf::Event

variable name doesn't matter.

thanks for tips

7
Window / Events have anonymous unions?!
« on: March 03, 2008, 05:09:21 pm »
Hi!

I've got a problem (which seems to be mentioned in http://www.sfml-dev.org/forum/viewtopic.php?t=95):

When I call for example
Code: [Select]
sf::Event Event;
...
int i = Event.MouseMove.X;


My Compiler gives me the error:
Code: [Select]
object missing in reference to `sf::Event::<anonymous union>::MouseMove'

Pages: [1]
anything