SFML community forums

General => Feature requests => Topic started by: SephiRok on July 26, 2009, 04:38:15 pm

Title: PrtSc KeyCode
Post by: SephiRok on July 26, 2009, 04:38:15 pm
Is there a reason why there is none?
Title: PrtSc KeyCode
Post by: Laurent on July 26, 2009, 07:06:55 pm
Do you mean "Print Screen"? What do you need it for?
Title: PrtSc KeyCode
Post by: Core Xii on July 26, 2009, 08:47:34 pm
It's the common key for taking screen shots.
Title: PrtSc KeyCode
Post by: Laurent on July 26, 2009, 08:56:05 pm
Yes, and it's properly done by the OS, so why should I care about it in SFML?
Title: PrtSc KeyCode
Post by: SephiRok on July 26, 2009, 09:11:52 pm
We have taking screenshots mapped to print screen with SDL -- that is, we create a jpg/png file when the user presses it -- for one, Guild Wars also does it like that. I see no reason why it should not be there? Why limit the users?

For completeness it is also worth thinking about adding "scroll lock" and "num lock" keys, since those are the only two I can see missing from the standard keyboard set.
Title: PrtSc KeyCode
Post by: Ceylo on July 26, 2009, 09:44:42 pm
Quote from: "SephiRok"
We have taking screenshots mapped to print screen with SDL -- that is, we create a jpg/png file when the user presses it -- for one, Guild Wars also does it like that. I see no reason why it should not be there? Why limit the users?

I think that what Laurent means is SFML does not prevent you from using the "Print Screen" key and that it IS handled by the OS. Thus there is no need to handle it manually in SFML.
Title: PrtSc KeyCode
Post by: Laurent on July 26, 2009, 09:56:55 pm
Quote
I think that what Laurent means is SFML does not prevent you from using the "Print Screen" key and that it IS handled by the OS. Thus there is no need to handle it manually in SFML.

What he's saying is that he wants to use it in his SFML program ;)

If I remember correctly, there was an issue with this key (I couldn't find it in Xlib, or something like that). I'll look into it again.