try
Code:
#include <acknex.h>
#include <default.c>

var var_joyForceX;
PANEL* pnl = {
	digits(20, 20, "joy_raw.x = %.2f", *, 1, joy_raw.x);
	digits(20, 50, "joy_force.x = %.2f", *, 1, joy_force.x);
	digits(20, 80, "var_joyForceX = %.2f", *, 1, var_joyForceX);
	flags = SHOW;
}

void main(){
	
	while(1){
		
		var_joyForceX = integer(joy_raw.x);
		wait(1);
	}
}

I'm guessing you have something else in your code or you have a dodgy joypad causing the issue. Hopefully this code should highlight it.