Keyboard Input

This is a discussion on Keyboard Input within the C++ Programming forums, part of the General Programming Boards category; We are trying to make a program that displays a keyboard on the screen, then highlights the corrospending key when ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    16

    Keyboard Input

    We are trying to make a program that displays a keyboard on the screen, then highlights the corrospending key when it is hit on the physical keyboard. Then it would play a different noise for each key. How do we begin? What fuctions/operations are associated with keyboard thigns?

    We know nothing about keyboards

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,437
    > We know nothing about keyboards
    Neither does standard C++.
    So you need to tell us about your environment (OS, Compiler, GUI etc).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    16
    we can either use Dev C++, visual basic or visual c++

    and we are using windows xp.

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,437
    How about the various sub-tasks
    - play a sound (any sound)
    - draw a simple button on screen
    - handle any key press
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help using inline assembly for keyboard input
    By sleventeen in forum C Programming
    Replies: 7
    Last Post: 05-10-2009, 01:31 AM
  2. Keyboard input in a Dialog
    By ksarkar in forum C++ Programming
    Replies: 1
    Last Post: 05-20-2005, 05:39 AM
  3. Intercepting keyboard input
    By EvBladeRunnervE in forum Windows Programming
    Replies: 3
    Last Post: 01-08-2004, 08:03 AM
  4. Need help with Console Keyboard Input
    By pawelx2 in forum Game Programming
    Replies: 5
    Last Post: 05-30-2002, 11:03 PM
  5. FAQ Keyboard Input ? (C++)
    By Malikive in forum FAQ Board
    Replies: 6
    Last Post: 11-07-2001, 08:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21