Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1075919 Posts in 44152 Topics- by 36120 Members - Latest Member: Royalhandstudios

December 29, 2014, 03:33:52 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)detecting available HIDs
Pages: [1]
Print
Author Topic: detecting available HIDs  (Read 532 times)
mechacrash
Level 1
*


It's almost like I'm actually being productive!


View Profile Email
« on: September 13, 2010, 12:36:31 PM »

Ive been looking around and playing about with Win32API for a bit... but i cant seem to find any sort of function or method of retrieving a count of how many HIDs are plugged into a computer at a given time.

In this case i want to check if there are any keyboards or any mice plugged into the computer so i can use it as a conditional.

Does anyone know how to do this?
Logged

Average Software
Level 10
*****

Fleeing all W'rkncacnter


View Profile WWW Email
« Reply #1 on: September 13, 2010, 12:55:10 PM »

GetRawInputDeviceList is probably what you want.
Logged

Franchise - The restaurant wars begin!

What would John Carmack do?
mechacrash
Level 1
*


It's almost like I'm actually being productive!


View Profile Email
« Reply #2 on: September 13, 2010, 01:15:08 PM »

thanks... thisll do for the time being... ill have to make a loop using GetRawInputDeviceInfo to determine wether or not the enumerated devices are of a specific type (mouse, keyboard, etc.)

at least ive got something to do now XD

EDIT:

did it... that was simple Tongue
« Last Edit: September 13, 2010, 01:27:21 PM by mechacrash » Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic