[ create a new paste ] login | about

Link: http://codepad.org/xA18pGEX    [ raw code | output | fork ]

D, pasted on Jul 9:
module mingine.win32fix;


import win32.windows;


// Missing stuff from the win32 bindings project

// Should be in windows headers but aren't.  Raw input is actually USB so usb usages are what are used to trap raw input
enum
{
    RAWINPUT_USB_USAGEPAGE = 1,
}


// Should be in windows headers but aren't.  Raw input is actually USB so usb usages are what are used to trap raw input
enum
{
    RAWINPUT_USB_USAGE_POINTER              = 1,
    RAWINPUT_USB_USAGE_MOUSE                = 2,
    RAWINPUT_USB_USAGE_JOYSTICK             = 4,
    RAWINPUT_USB_USAGE_CONTROLLER           = 5,
    RAWINPUT_USB_USAGE_KEYBOARD             = 6,
    RAWINPUT_USB_USAGE_KEYPAD               = 7,
    RAWINPUT_USB_USAGE_MULTIAXIS_CONTROLLER = 8,
    RAWINPUT_USB_USAGE_TABLET               = 9,
}

enum FAPPCOMMAND_MOUSE = 0x8000;
enum FAPPCOMMAND_KEY   = 0;
enum FAPPCOMMAND_OEM   = 0x1000;
enum FAPPCOMMAND_MASK  = 0xF000;


Output:
1
2
3
4
5
6
7
8
9
Line 2: Declaration expected, not 'module'
Line 30: enum declaration is invalid
Line 30: Declaration expected, not '='
Line 31: enum declaration is invalid
Line 31: Declaration expected, not '='
Line 32: enum declaration is invalid
Line 32: Declaration expected, not '='
Line 33: enum declaration is invalid
Line 33: Declaration expected, not '='


Create a new paste based on this one


Comments: