L298N Library Modification, error in "this->" pointer section,anyone would help?

I try to modify L298N library as adding parameters as changing the original forward(), backward() functions which I want to write the speed values of the motors to the function as parameters in the given library below.

I can do the things I said with Arduino without using cpp, h files; but I want my code short in my arduino sketch. Thus, I tried to modify an existence library with the way I want. However, I get error at the same place all time which I explained below.

This is the original file of the Library L298N/L298N.cpp at master · AndreaLombardo/L298N · GitHub

The Library Code without modification:

void L298N::forward(){
  digitalWrite(_pinIN1, HIGH);
  digitalWrite(_pinIN2, LOW);

  analogWrite(_pinEnable, _pwmVal);

  _isMoving = true;
}


void L298N::forwardFor(unsigned long delay, CallBackFunction callback){
  if ((_lastMs == 0) && _canMove) {
    _lastMs = millis();
    this->forward();
  }

  if (((millis() - _lastMs) > delay) && _canMove) {
    this->stop();
    _lastMs = 0;
    _canMove = false;

    callback();

  }
}

void L298N::forwardFor(unsigned long delay){
  this->forwardFor(delay, fakeCallback);
}

This is the modified version of code I added:

void L298N::forward(unsigned short pwmVal_A, unsigned short pwmVal_B){
  _pwmVal_A = pwmVal_A;
  _pwmVal_B = pwmVal_B;

  digitalWrite(_pinIN1, HIGH);
  digitalWrite(_pinIN2, LOW);

  analogWrite(_pinEnable_A, _pwmVal_A);

  _isMoving_A = true;

  digitalWrite(_pinIN3, HIGH);
  digitalWrite(_pinIN4, LOW);

  analogWrite(_pinEnable_B, _pwmVal_B);

  _isMoving_B = true;
}


void L298N::forwardFor(unsigned long delay_A, unsigned long delay_B, CallBackFunction callback){
  if (((_lastMs_A == 0) && _canMove_A) && ((_lastMs_B == 0) && _canMove_B)) {
    _lastMs_A = millis();
    _lastMs_B = millis();
    this->forward(unsigned short pwmVal_A, unsigned short pwmVal_B);
  }

  if ((((millis() - _lastMs_A) > delay_A) && _canMove_A) && (((millis() - _lastMs_B) > delay_B) && _canMove_B) ) {
    this->stop();
    _lastMs_A = 0;
    _canMove_A = false;
    _lastMs_B = 0;
    _canMove_B = false;
    callback();

  }
}

void L298N::forwardFor(unsigned long delay_A, unsigned long delay_B){
  this->forwardFor(delay_A, delay_B, fakeCallback);
}

However, I get this error all time in Arduino for the line where this pointer is.

error: expected primary-expression before 'unsigned'
this->forward(unsigned short pwmVal_A, unsigned short pwmVal_B);

When I check the c++ this pointer sample examples and thy use "this pointer" with function without parameters always. I couldn't find any examples that uses "this pointer" with a function which requires parameters.

Do you know how to write or change the "this pointer" line to make the code work without any errors in Arduino ?

This is my 1st time to modify an existence library for a motor driver.

and how does the .h file look now, have you updated the function declarations with their new parameters ?