Capsense library with xiao esp32c3

Hi, im trying to use the capsense library by Paul Badger (which i have used before on other arduinos), however getting the following errors, doesnt seem to matter if i change the pins to D2, D4, just get same error. does anyone have a work around?


#include <CapacitiveSensor.h>

 * CapitiveSense Library Demo Sketch
 * Paul Badger 2008
 * Uses a high value resistor e.g. 10M between send pin and receive pin
 * Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values.
 * Receive pin is the sensor pin - try different amounts of foil/metal on this pin

CapacitiveSensor   cs_4_2 = CapacitiveSensor(D4,D2);        // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired

void setup()                    
   cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF);     // turn off autocalibrate on channel 1 - just as an example

void loop()                    
    long start = millis();
    long total1 =  cs_4_2.capacitiveSensor(30);
    Serial.print(millis() - start);        // check on performance in milliseconds
    Serial.print("\t");                    // tab character for debug windown spacing

    Serial.print(total1);                  // print sensor output 1
    delay(10);                             // arbitrary delay to limit data to serial port 


master/CapacitiveSensor.h:204:38: error: 'esp32_gpioMux' was not declared in this scope
         ESP_REG(DR_REG_IO_MUX_BASE + esp32_gpioMux[pin].reg) = pinFunction;
\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8\cores\esp32/esp32-hal.h:77:47: note: in definition of macro 'ESP_REG'
 #define ESP_REG(addr) *((volatile uint32_t *)(addr))

exit status 1

Compilation error: exit status 1