예제 #1
0
 void RemoveAll()
 {
     m_vItems.SetEmpty();
     if (m_pScrollPane) {
         m_pScrollPane->SetSize(m_vItems.GetCount());
         m_pScrollPane->SetPos(0);
     }
     SetSelItemByIdx(-1);
     NeedPaint();
 }
    void EnumerateJoysticks()
    {
        //
        // Free up the old devices
        //

        m_vjoystickInputStream.SetEmpty();

        //
        // Enumerate all of the devices
        //

        DDCall(m_pdi->EnumDevices(
            0,//DIDEVTYPE_JOYSTICK,
            (LPDIENUMDEVICESCALLBACK)StaticEnumDeviceCallback,
            this, 
            DIEDFL_ATTACHEDONLY
        ));
    }