input: add Rock Revolution Drum Controller product info

This commit is contained in:
Megamouse
2020-04-25 02:13:06 +02:00
parent e4cb9ef7cd
commit de58f19866
2 changed files with 16 additions and 4 deletions
+11 -4
View File
@@ -13,6 +13,7 @@ namespace input
dj_hero_turntable, dj_hero_turntable,
harmonix_rockband_guitar, harmonix_rockband_guitar,
harmonix_rockband_drum_kit, harmonix_rockband_drum_kit,
rock_revolution_drum_kit
}; };
enum vendor_id enum vendor_id
@@ -31,14 +32,15 @@ namespace input
harmonix_rockband_guitar = 0x0200, // Harmonix Guitar (Rock Band II Guitar Controller) harmonix_rockband_guitar = 0x0200, // Harmonix Guitar (Rock Band II Guitar Controller)
harmonix_rockband_drum_kit = 0x0210, // Harmonix Drum Kit (Rock Band II Drum Controller) harmonix_rockband_drum_kit = 0x0210, // Harmonix Drum Kit (Rock Band II Drum Controller)
playstation_3_controller = 0x0268, // PlayStation 3 Controller playstation_3_controller = 0x0268, // PlayStation 3 Controller
rock_revolution_drum_kit = 0x0300, // Rock Revolution Drum Controller
}; };
struct product_info struct product_info
{ {
product_type type; product_type type;
uint16_t vendor_id; unsigned short vendor_id;
uint16_t product_id; unsigned short product_id;
uint32_t pclass_profile; // See CELL_PAD_PCLASS_PROFILE flags unsigned int pclass_profile; // See CELL_PAD_PCLASS_PROFILE flags
}; };
static product_info get_product_info(product_type type) static product_info get_product_info(product_type type)
@@ -74,6 +76,10 @@ namespace input
{ {
return product_info{ type, vendor_id::sony_cea, product_id::red_octane_gh_guitar, 0x000000FF }; return product_info{ type, vendor_id::sony_cea, product_id::red_octane_gh_guitar, 0x000000FF };
} }
case product_type::rock_revolution_drum_kit:
{
return product_info{ type, vendor_id::sony_cea, product_id::rock_revolution_drum_kit, 0x000000FB };
}
} }
} }
@@ -102,7 +108,8 @@ namespace input
return return
{ {
get_product_info(product_type::red_octane_gh_drum_kit), get_product_info(product_type::red_octane_gh_drum_kit),
get_product_info(product_type::harmonix_rockband_drum_kit) get_product_info(product_type::harmonix_rockband_drum_kit),
get_product_info(product_type::rock_revolution_drum_kit)
}; };
} }
case 3: // CELL_PAD_PCLASS_TYPE_DJ case 3: // CELL_PAD_PCLASS_TYPE_DJ
+5
View File
@@ -1281,6 +1281,11 @@ void pad_settings_dialog::HandleDeviceClassChange(int index)
ui->chooseProduct->addItem(tr("Guitar Hero", "RedOctane Guitar Hero Guitar"), static_cast<int>(product.type)); ui->chooseProduct->addItem(tr("Guitar Hero", "RedOctane Guitar Hero Guitar"), static_cast<int>(product.type));
break; break;
} }
case input::product_type::rock_revolution_drum_kit:
{
ui->chooseProduct->addItem(tr("Rock Revolution", "Rock Revolution Drum Controller"), static_cast<int>(product.type));
break;
}
} }
} }
} }