Pages: [1]   Go Down
Author Topic: help needed to find HID.cpp  (Read 1548 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello ,
 am trying this absolute mode for one of my project but i have a problem finding the HID.cpp file attached so would someone please help me with that.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8842
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you meant the HID.cpp file that is part of the Arduino core?  On the Macintosh you would find it in:
Quote
/Applications/Arduino 1.0.1.app/Contents/Resources/Java/hardware/arduino/cores/arduino/HID.cpp
If that is not the file you want you will have to be much more specific.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

no sir..
i am trying to use my arduino leonardo as mouse to my computer , i was successful with the mouse.move function but i needed to move the pointer to a specific coordinate like mouse.move(x,y); as explained in the below issue.

http://arduino.cc/forum/index.php?topic=94140.0

but i couldn't find the modified HID.cpp file he is talking about in his post.
so help needed to find that file ,to use my arduino leonardo as a mouse to move pointer to specific co-ordinate .
and thank you for your interest appreciate that  smiley   
Logged

Norfolk UK
Offline Offline
Faraday Member
**
Karma: 69
Posts: 2550
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

but i couldn't find the modified HID.cpp file he is talking about in his post.
so help needed to find that file ,to use my arduino leonardo as a mouse to move pointer to specific co-ordinate .
and thank you for your interest appreciate that  smiley   
The first and second posts in the thread you linked to both have HID.cpp files attached to them.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thank you for that and i have started my project but one more help needed to increase the resolution above mouse.move(100,100); because am using an wide screen laptop it may require mouse.move(120.120);
Logged

Norfolk UK
Offline Offline
Faraday Member
**
Karma: 69
Posts: 2550
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thank you for that and i have started my project but one more help needed to increase the resolution above mouse.move(100,100); because am using an wide screen laptop it may require mouse.move(120.120);
Not sure I can help as I don't have Leonardo to try it on but a quick look at the code shows
Code:
#ifdef ABSOLUTE_MOUSE_MODE
    0x15, 0x01,                    //     LOGICAL_MINIMUM (1)       <<<< This allows us to talk to any display resolution
    0x25, 0x64,                    //     LOGICAL_MAXIMUM (100)     <<<<  as though it was 100x100 pixels
that implies the 100x100 will work with any screen resolution.
Logged


Pages: [1]   Go Up
Jump to: