From e02edb29096fce9770f43ed9a86e153aa86bbf37 Mon Sep 17 00:00:00 2001 From: Alan Ott Date: Tue, 13 Sep 2011 11:06:04 +0800 Subject: [PATCH] Fixed the formatting of README.txt --- README.txt | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/README.txt b/README.txt index 082e641..b144481 100644 --- a/README.txt +++ b/README.txt @@ -3,11 +3,19 @@ HID API for Windows, Linux, and Mac OS X About ------ -HIDAPI is a multi-platform library which allows an application to interface with USB and Bluetooth HID-Class devices on Windows, Linux, and Mac OS X. On Windows, a DLL is built. On other platforms (and optionally on Windows), the single source file can simply be dropped into a target application. +HIDAPI is a multi-platform library which allows an application to interface +with USB and Bluetooth HID-Class devices on Windows, Linux, and Mac OS X. +On Windows, a DLL is built. On other platforms (and optionally on Windows), +the single source file can simply be dropped into a target application. What Does the API Look Like? ----------------------------- -The API wraps the functionality of the most commonly used of the hid.dll functions. The sample program, which communicates with the USB Generic HID sample which is part of the Microchip Application Library (in folder "Microchip Solutions\USB Device - HID - Custom Demos\Generic HID - Firmware" when the Microchip Application Framework is installed), looks like this (with error checking removed for simplicity): +The API wraps the functionality of the most commonly used of the hid.dll +functions. The sample program, which communicates with the USB Generic HID +sample which is part of the Microchip Application Library (in folder +"Microchip Solutions\USB Device - HID - Custom Demos\Generic HID - Firmware" +when the Microchip Application Framework is installed), looks like this +(with error checking removed for simplicity): #include #include @@ -66,7 +74,8 @@ int main(int argc, char* argv[]) License -------- -HIDAPI may be used by anyone for any reason so long as the coypright header in the source code remains intact. +HIDAPI may be used by anyone for any reason so long as the coypright header +in the source code remains intact. Download --------- @@ -105,10 +114,15 @@ To build the Test GUI: To build using the DDK (old method): 1. Install the Windows Driver Kit (WDK) from Microsoft. - 2. From the Start menu, in the Windows Driver Kits folder, select Build Environments, then your operating system, then the x86 Free Build Environment (or one that is appropriate for your system). - 3. From the console, change directory to the windows/ddk_build/ directory, which is part of the HIDAPI distribution. + 2. From the Start menu, in the Windows Driver Kits folder, select Build + Environments, then your operating system, then the x86 Free Build + Environment (or one that is appropriate for your system). + 3. From the console, change directory to the windows/ddk_build/ directory, + which is part of the HIDAPI distribution. 4. Type build. - 5. You can find the output files (DLL and LIB) in a subdirectory created by the build system which is appropriate for your environment. On Windows XP, this directory is objfre_wxp_x86/i386. + 5. You can find the output files (DLL and LIB) in a subdirectory created + by the build system which is appropriate for your environment. On + Windows XP, this directory is objfre_wxp_x86/i386. --------------------------------