keyboard events

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • OCD
    New Member
    • Feb 2007
    • 9

    keyboard events

    How can i make it so that when a user presses control-S an object is painted in a frame? How can I combine the two key events??
  • iWillLiveforever
    New Member
    • Feb 2007
    • 136

    #2
    Hope this helps with your problem at all

    Code:
    if(keyboard input1 == askey code for ctrl && keyboard input2 == askey code for s)
    {
         code for object
    }

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by OCD
      How can i make it so that when a user presses control-S an object is painted in a frame? How can I combine the two key events??
      The API and the tutorial are your friends.

      Comment

      Working...