Go to Post This is one case where I really wish Andymark didn't listen to their customers so well. - ASD20 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #11   Spotlight this post!  
Unread 11-05-2013, 02:50 PM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Is this Programmable with C++?

Quote:
Originally Posted by Alan Anderson View Post
It's possible to program the Dashboard to recognize keypresses...
Quote:
Originally Posted by Halo_Kid_3633 View Post
How do I go about doing this?
The relevant functions are in the Connectivity -> Input Device Control subpalette. Use the Initialize Keyboard vi to create a reference to the computer's keyboard. Pass that reference to the Acquire Input Data vi. The output of the Acquire will be an array containing all the keys that are currently pressed.

If you want to test for a specific key, you can feed the "keys pressed" array into a For Loop using auto-indexing. Each iteration of the loop will get one of the keys in the array. You can compare the detected key against a constant representing the key you are looking for.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi