XYZ pad - how to connect?

I have one XYZ pad laying around. It has four pins, I don't know which manufacturer made it. So I have 0 documentation. It's pretty similar to this:

Now, how do I connect it to Arduino? I haven't managed to find some useful data. Also, I would appreciate any code examples, or even better documentation for some pads, as I'm guessing they all work similar.

// Per.

Thanks!

After playing around with that library (and some other code examples I run into), what I managed to get is this:

X coordinate is more or less precise, mostly no issues
Y coordinate is correct only after I apply significant pressure to pad
Pressure basically isn't detected at all if it's not pushed hard.

Couple of things have crossed my mind:

  1. Sensor is malfunctioning (unlikely?)
  2. Code doesn't work as it should
  3. I require some kind of "driver" for touchscreens, which would amplify the readings

Any thoughts?

Try swapping the connections for X and Y - what happens, do the problem move to the other axis ?

// Per.

I now got code that reads X and Z (pressure) properly. However, Y is registered after hard press no matter what I try. I think I should try using amp.

const uint8_t tPin1 = A3;
const uint8_t tPin2 = A2;
const uint8_t tPin3 = A1;
const uint8_t tPin4 = A0;

int pressure = 0, x = 0, y = 0;

void setup(){
  
  Serial.begin(115200);
  
}

void loop(){
 
  setupPressure();
  delay(5);
  pressure = map(analogRead(tPin4), 0, 1023, 0, 127);
  
  setupX();
  delay(5);
  x = map(constrain(analogRead(tPin2),300,700),300,700,0,127);
  
  setupY();
  delay(5);
  y = map(analogRead(tPin4),0,1023,0,127);
  
  printAll();
  delay(5);
  
}

void setupPressure()  {
  
  //setup for pressure
  pinMode(tPin1, OUTPUT);
  pinMode(tPin2, OUTPUT);
  pinMode(tPin3,INPUT);
  pinMode(tPin4,INPUT);
  digitalWrite(tPin1, HIGH);
  digitalWrite(tPin2, HIGH);
  digitalWrite(tPin3,LOW);
  digitalWrite(tPin4,LOW);
  
}

void setupX()  {
  
  //set pins for x
  pinMode(tPin1,INPUT);
  pinMode(tPin2,INPUT);
  pinMode(tPin3,OUTPUT);
  pinMode(tPin4,OUTPUT);
  digitalWrite(tPin1,LOW);
  digitalWrite(tPin2,LOW);
  digitalWrite(tPin3,LOW);
  digitalWrite(tPin4,HIGH);
  
}

void setupY()  {
  
  /*
  //set pins for y
  pinMode(tPin1, OUTPUT);
  pinMode(tPin2, OUTPUT);
  pinMode(tPin3,INPUT);
  pinMode(tPin4,INPUT);
  digitalWrite(tPin1, LOW);
  digitalWrite(tPin2, HIGH);
  digitalWrite(tPin3,LOW);
  digitalWrite(tPin4,LOW);*/
  
  pinMode(tPin1, OUTPUT);
  pinMode(tPin2, INPUT);
  pinMode(tPin3,OUTPUT);
  pinMode(tPin4,INPUT);
  digitalWrite(tPin1, HIGH);
  digitalWrite(tPin2, LOW);
  digitalWrite(tPin3,LOW);
  digitalWrite(tPin4,LOW);
}

void printAll()  {
  
  Serial.print("Pressure: ");
  Serial.print(pressure);
  Serial.print("\tX: ");
  Serial.print(x);
  Serial.print("\tY: ");
  Serial.print(y);
  Serial.println();
  
}

Pins 3 and 4 have 10k pull-down resistor connected to them.

EDIT:
Not only does Y react on harder pres, the harder I press it the more readings are fluctuating (x/z remain stable).