void hid_reset(HIDState *hs)

{

    switch (hs->kind) {

    case HID_KEYBOARD:

        memset(hs->kbd.keycodes, 0, sizeof(hs->kbd.keycodes));

        memset(hs->kbd.key, 0, sizeof(hs->kbd.key));

        hs->kbd.keys = 0;


        break;

    case HID_MOUSE:

    case HID_TABLET:

        memset(hs->ptr.queue, 0, sizeof(hs->ptr.queue));

        break;

    }

    hs->head = 0;

    hs->n = 0;

    hs->protocol = 1;

    hs->idle = 0;

    hs->idle_pending = false;

    hid_del_idle_timer(hs);

}
void hid_reset(HIDState *hs)

{

    switch (hs->kind) {

    case HID_KEYBOARD:

        memset(hs->kbd.keycodes, 0, sizeof(hs->kbd.keycodes));

        memset(hs->kbd.key, 0, sizeof(hs->kbd.key));

        hs->kbd.keys = 0;


        break;

    case HID_MOUSE:

    case HID_TABLET:

        memset(hs->ptr.queue, 0, sizeof(hs->ptr.queue));

        break;

    }

    hs->head = 0;

    hs->n = 0;

    hs->protocol = 1;

    hs->idle = 0;

    hs->idle_pending = false;

    hid_del_idle_timer(hs);

}
void FUNC_0(HIDState *VAR_0)

{

    switch (VAR_0->kind) {

    case HID_KEYBOARD:

        memset(VAR_0->kbd.keycodes, 0, sizeof(VAR_0->kbd.keycodes));

        memset(VAR_0->kbd.key, 0, sizeof(VAR_0->kbd.key));

        VAR_0->kbd.keys = 0;


        break;

    case HID_MOUSE:

    case HID_TABLET:

        memset(VAR_0->ptr.queue, 0, sizeof(VAR_0->ptr.queue));

        break;

    }

    VAR_0->head = 0;

    VAR_0->n = 0;

    VAR_0->protocol = 1;

    VAR_0->idle = 0;

    VAR_0->idle_pending = false;

    hid_del_idle_timer(VAR_0);

}
void FUNC_0(HIDState *VAR_0)
{ switch (VAR_0->kind) { case HID_KEYBOARD:
memset(VAR_0->kbd.keycodes, 0, sizeof(VAR_0->kbd.keycodes)); memset(VAR_0->kbd.key, 0, sizeof(VAR_0->kbd.key)); VAR_0->kbd.keys = 0; break; case HID_MOUSE:
case HID_TABLET:
memset(VAR_0->ptr.queue, 0, sizeof(VAR_0->ptr.queue)); break; } VAR_0->head = 0; VAR_0->n = 0; VAR_0->protocol = 1; VAR_0->idle = 0; VAR_0->idle_pending = false; hid_del_idle_timer(VAR_0); }