Thread: Detecting a key in linux

  1. #1
    Registered User
    Join Date
    May 2020
    Posts
    2

    Detecting a key in linux

    Hello,

    I am trying to move an object in x,y coordinates with wasd. But I dont know which functions do I need to do this. Can you help me please?

    Thanks!

  2. #2
    Registered User
    Join Date
    Feb 2019
    Posts
    1,078
    Maybe you'll find this useful: Simple DirectMedia Layer - Homepage

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  4. #4
    Registered User
    Join Date
    May 2020
    Posts
    2
    thank you so much! How can I use it for w a s d? Should I use if else?

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Detecting +/-1.#J
    By george7378 in forum C++ Programming
    Replies: 4
    Last Post: 05-18-2010, 05:12 AM
  2. detecting characters
    By Emerald in forum C Programming
    Replies: 1
    Last Post: 08-27-2009, 07:57 AM
  3. Detecting keyboard and mouse in linux
    By sameer.nalwade in forum C Programming
    Replies: 3
    Last Post: 11-22-2008, 04:24 AM
  4. Detecting the OS
    By John.H in forum C++ Programming
    Replies: 3
    Last Post: 02-21-2003, 09:50 AM
  5. mouse detecting
    By canine in forum Windows Programming
    Replies: 4
    Last Post: 07-24-2002, 02:32 AM

Tags for this Thread