Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Keyboard input doesn't work

  1. #1
    Newbie Newbie
    Join Date
    Oct 2017
    Posts
    1

    Question Keyboard input doesn't work

    Hi, I am experimenting on the codes using keyboard input.

    This program shows the green cube with lightning. I am trying to move the camera but only Z axis can be moved

    Click image for larger version. 

Name:	Untitled.jpg 
Views:	7 
Size:	7.0 KB 
ID:	2532

    WASD = moving the camera( Can't move X axis)
    Arraws = Rotating the object
    Attached Files Attached Files

  2. #2
    Intern Contributor
    Join Date
    Dec 2016
    Location
    Ocean Shores, WA USA
    Posts
    66
    Have you tried swapping the WS and AD around?

    Since W and S input response works, try, swapping the code around, so the W and S control the X axis, and A and D control the Z axis.

    Let me know,
    Jeff

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •