Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-13-2007, 07:31 PM   #1 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Best Way to get Key Presses in X application?

Hi Everyone,
I'm sort of stumped on how to go about this. I've got a basic openGL app that creates a generic X Window. How do I get user keypresses? I'm not using gtk or anything, all I have is my OpenGL rendering context and my window. Any help or pointers towards libraries would be appreciated.
__________________
Stop intellectual property from infringing on me
teknomage1 is online now   Reply With Quote
Old 02-14-2007, 02:37 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,709
redhead is on a distinguished road
OpenGL doesn't provide routines for interfacing with a windowing system or input devices, an application must use a variety of other platform-specific routines for this purpose. Perhaps the flt interaction is a solution.
Or perhaps you want to use some CE-GUI handling
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Windows Service Application from scratch? Redline MS Technologies ( ASP, VB, C#, .NET ) 3 07-15-2006 03:32 AM
Log4j created file not able to delete while testing my application?? j.gohel Java 12 04-07-2006 10:52 AM
Crypt a registry key help deutsch Assembly 0 04-06-2006 07:23 AM
Application variables sde Java 2 09-01-2004 04:30 PM
What makes a network application? sde Program Design and Methods 3 08-03-2003 05:19 PM


All times are GMT -8. The time now is 09:09 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting