Droid Depot R2 units have the feature to use electronic accessories. Here’s an accessory teardown of one of the gun blasters.
For the record, it didn’t look like there was any non-destructive way to get the chassis open. RIP, sweet accessory prince. Thank you for donating your body to (space) science.