Sono riuscito a fare in modo che il mio cell comandi il mio PC via bluetooth come un telecomando, è molto comodo quando guardo film o sento musica
Per farlo devo installare nel telefono dei pacchetti .hid che contengono un file .kcf che è il codice. Mi piacerebbe capire meglio come funziona questo codice in modo da poter costruire i miei pacchetti.
Posto un esempio:
Codice:
<SONY_ERICSSON_REMOTE_CONTROL_CONFIGURATION VERSION = "1.0">
<KEYMAP>
<KEY_5>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "09"/> <!-- F(ullscreen) -->
</ACTION>
</KEY_5>
<KEY_1>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "50"/> <!-- Left -->
</ACTION>
</KEY_1>
<KEY_2>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "37"/> <!-- . (step mode) -->
</ACTION>
</KEY_2>
<KEY_JOY>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "2C"/> <!-- Space (pause) -->
</ACTION>
</KEY_JOY>
<KEY_3>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "4F"/> <!-- Right -->
</ACTION>
</KEY_3>
<KEY_6>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "52"/> <!-- Up -->
</ACTION>
</KEY_6>
<KEY_4>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "51"/> <!-- Down -->
</ACTION>
</KEY_4>
<KEY_9>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "4B"/> <!-- PgUp -->
</ACTION>
</KEY_9>
<KEY_7>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "4E"/> <!-- PgDown -->
</ACTION>
</KEY_7>
<KEY_0>
<ACTION>
<KEYBOARD MODIFIERS = "04" USAGEID = "2B"/> <!-- Alt+TAB -->
</ACTION>
</KEY_0>
<KEY_8>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "12"/> <!-- O(SD) -->
</ACTION>
</KEY_8>
<KEY_HASH>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "10"/> <!-- M(ute) -->
</ACTION>
</KEY_HASH>
<KEY_STAR>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "29"/> <!-- Esc -->
</ACTION>
</KEY_STAR>
<KEY_VOL_UP>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "27"/> <!-- 0 -->
</ACTION>
</KEY_VOL_UP>
<KEY_VOL_DOWN>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "26"/> <!-- 9 -->
</ACTION>
</KEY_VOL_DOWN>
</KEYMAP>
</SONY_ERICSSON_REMOTE_CONTROL_CONFIGURATION>
<KEYMAP>
<KEY_5>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "09"/> <!-- F(ullscreen) -->
</ACTION>
</KEY_5>
<KEY_1>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "50"/> <!-- Left -->
</ACTION>
</KEY_1>
<KEY_2>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "37"/> <!-- . (step mode) -->
</ACTION>
</KEY_2>
<KEY_JOY>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "2C"/> <!-- Space (pause) -->
</ACTION>
</KEY_JOY>
<KEY_3>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "4F"/> <!-- Right -->
</ACTION>
</KEY_3>
<KEY_6>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "52"/> <!-- Up -->
</ACTION>
</KEY_6>
<KEY_4>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "51"/> <!-- Down -->
</ACTION>
</KEY_4>
<KEY_9>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "4B"/> <!-- PgUp -->
</ACTION>
</KEY_9>
<KEY_7>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "4E"/> <!-- PgDown -->
</ACTION>
</KEY_7>
<KEY_0>
<ACTION>
<KEYBOARD MODIFIERS = "04" USAGEID = "2B"/> <!-- Alt+TAB -->
</ACTION>
</KEY_0>
<KEY_8>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "12"/> <!-- O(SD) -->
</ACTION>
</KEY_8>
<KEY_HASH>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "10"/> <!-- M(ute) -->
</ACTION>
</KEY_HASH>
<KEY_STAR>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "29"/> <!-- Esc -->
</ACTION>
</KEY_STAR>
<KEY_VOL_UP>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "27"/> <!-- 0 -->
</ACTION>
</KEY_VOL_UP>
<KEY_VOL_DOWN>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "26"/> <!-- 9 -->
</ACTION>
</KEY_VOL_DOWN>
</KEYMAP>
</SONY_ERICSSON_REMOTE_CONTROL_CONFIGURATION>
In particolare non riesco bene a capire cosa sia lo USAGEID... Ho provato a documentarmi un po', nello specifico ho trovato questo Link a pagina di Usb.org però su quel punto sono proprio fermo, non riesco a capire come devo modificarlo
Se c'è qualche informatico un po' preparato che mi può dare una mano
Grazieee