Actually the fuel consumption is calculated solely from "Engine Thrust" which is a function of both speed and engine throttle.
You can examine this by trying any of the demo aircrafts.
1. Turn on the engines and don't release the parking brakes
2. Increase the throttle and observe the engine burn rate increase with the increasing engine RPM and Thrust... Despite the aircraft being completely stationary.