Search found 43 matches

by rodrigo.seabra
Mon Oct 20, 2008 5:13 am
Forum: Developer's Forum for Windows
Topic: Reading data from keyboard
Replies: 0
Views: 6466

Reading data from keyboard

Hi,

I would like to know if anyone knows any example (in C++) to read data from keyboard, as the HID examples. My application has no windows.

Thanks,

Seabra.
by rodrigo.seabra
Mon Jul 21, 2008 5:29 am
Forum: Developer's Forum for Windows
Topic: HID & two SpaceNavigators
Replies: 9
Views: 18217

Hi Martin,

How you defined the method that initializes the device?

Thanks,

Rodrigo.
by rodrigo.seabra
Thu Jul 17, 2008 7:11 am
Forum: Developer's Forum for Windows
Topic: HID & two SpaceNavigators
Replies: 9
Views: 18217

Hello Martin,

Right. Now, my comprehension improved. But is not lacking in its previous code set the variable m_bStopping flag to FALSE, at start of thread?

What is the exact point where this should be done?

Thanks,

Rodrigo.
by rodrigo.seabra
Wed Jul 16, 2008 9:48 am
Forum: Developer's Forum for Windows
Topic: HID & two SpaceNavigators
Replies: 9
Views: 18217

Hi Martin,

I believe that you didn't see my previous message ... Could you give me the definition of the method IsStopping?

Thank you very much...

Rodrigo.
by rodrigo.seabra
Mon Jul 14, 2008 10:29 am
Forum: Developer's Forum for Windows
Topic: HID & two SpaceNavigators
Replies: 9
Views: 18217

Hi Martin Soch,

Where is the definition of the method IsStopping()? I would like to know what this method means in your code...

Thank you very much for your attention help me...

Rodrigo.
by rodrigo.seabra
Thu Jul 10, 2008 10:13 am
Forum: Developer's Forum for Windows
Topic: HID & two SpaceNavigators
Replies: 9
Views: 18217

Hi sochm, I'm trying to do exactly the same as you did in your application, including the asynchronous handling of device, but I am working with only one. I have tried several combinations of parameters of methods ReadFile, WaitForSingleObject and GetOverlappedResult, however, no sucess. During the ...
by rodrigo.seabra
Tue Jul 01, 2008 7:33 am
Forum: Developer's Forum for Windows
Topic: HID Examples
Replies: 16
Views: 57276

Sorry, a line is hidden. case ERROR_IO_PENDING: BOOL bPending = TRUE; while(bPending) { if (!GetOverlappedResult(pDev -> handle, &overlapped, &ntransferred, FALSE)) { switch (dwError = GetLastError()) { case ERROR_IO_PENDING: cout << "ainda pendente..." << endl; break; case ERROR_I...
by rodrigo.seabra
Tue Jul 01, 2008 7:06 am
Forum: Developer's Forum for Windows
Topic: HID Examples
Replies: 16
Views: 57276

Right. The error is that driver of SpaceNavigator was off. After connecting the driver, the current error is: "ERROR_IO_INCOMPLETE" if (FALSE == ReadFile(pDev -> handle, pDev -> buf, pDev -> capabilities.InputReportByteLength, NULL, &overlapped)) { switch (dwError = GetLastError()) { c...
by rodrigo.seabra
Tue Jul 01, 2008 5:48 am
Forum: Developer's Forum for Windows
Topic: HID Examples
Replies: 16
Views: 57276

I understand. However, I tried to use:

Code: Select all

if (!ReadFile(pDev -> handle, pDev -> buf, pDev -> capabilities.InputReportByteLength, NULL, &overlapped)) {
           switch (dwError = GetLastError()) {
...
The function GetLastError returns the value "6"... What I do?

Thanks.
by rodrigo.seabra
Mon Jun 30, 2008 11:41 am
Forum: Developer's Forum for Windows
Topic: HID Examples
Replies: 16
Views: 57276

Hi, In HIDTest example, the application is in a loop that gets the coordinates of translation and rotation of Spacenavigator. In my application, I tried to adapt the same code and strategy to read the coordinates of the device, however, as my application already makes use of a main loop that updates...
by rodrigo.seabra
Mon Jun 23, 2008 11:59 am
Forum: Developer's Forum for Windows
Topic: Link of Event Handlers to Connexion Device - Receive Events
Replies: 3
Views: 9999

Hi ngomes, I know how to operate the event handlers in general, however, for most it has tried, I could not do the correct use of methods hr = __hook (...) mentioned in the documentation of 3DxInput API. Me seems that I need them to capture the events generated by the SpaceNavigator. Considering the...
by rodrigo.seabra
Fri Jun 20, 2008 6:57 am
Forum: Developer's Forum for Windows
Topic: Link of Event Handlers to Connexion Device - Receive Events
Replies: 3
Views: 9999

How I do to receive events of device???
by rodrigo.seabra
Thu Jun 19, 2008 10:52 am
Forum: Developer's Forum for Windows
Topic: Link of Event Handlers to Connexion Device - Receive Events
Replies: 3
Views: 9999

Link of Event Handlers to Connexion Device - Receive Events

Hi, I have a doubt. In my application, I connected the SpaceNavigator, but I don't understand how to link the event handlers to connexion device. Someone could help me? #include "spacenavigator.h" #define UnknownDevice 0 using namespace std; CComPtr<IUnknown> _3DxDevice; CComPtr<ISensor> g...
by rodrigo.seabra
Thu Jun 19, 2008 9:39 am
Forum: Developer's Forum for Windows
Topic: Example of OnSensorInput()
Replies: 14
Views: 97008

Ok alexus.
by rodrigo.seabra
Thu Jun 19, 2008 9:20 am
Forum: Developer's Forum for Windows
Topic: Example of OnSensorInput()
Replies: 14
Views: 97008

If you have the code in C#, maybe I can convert it to C++