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

Author Topic: PrtSc KeyCode  (Read 4975 times)

0 Members and 1 Guest are viewing this topic.

SephiRok

  • Newbie
  • *
  • Posts: 6
    • View Profile
PrtSc KeyCode
« on: July 26, 2009, 04:38:15 pm »
Is there a reason why there is none?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
PrtSc KeyCode
« Reply #1 on: July 26, 2009, 07:06:55 pm »
Do you mean "Print Screen"? What do you need it for?
Laurent Gomila - SFML developer

Core Xii

  • Jr. Member
  • **
  • Posts: 54
    • MSN Messenger - corexii@gmail.com
    • AOL Instant Messenger - Core+Xii
    • View Profile
PrtSc KeyCode
« Reply #2 on: July 26, 2009, 08:47:34 pm »
It's the common key for taking screen shots.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
PrtSc KeyCode
« Reply #3 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?
Laurent Gomila - SFML developer

SephiRok

  • Newbie
  • *
  • Posts: 6
    • View Profile
PrtSc KeyCode
« Reply #4 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.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
PrtSc KeyCode
« Reply #5 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.
Want to play movies in your SFML application? Check out sfeMovie!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
PrtSc KeyCode
« Reply #6 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.
Laurent Gomila - SFML developer

 

anything