Besides the fact that there are no fuel-air explosions involved, these pistons are also double-acting thanks to a valve mechanism that ... back and forth as the crankshaft rotates.
The pistons are connected to the crankshaft, and this is what ... The valvetrain is the mechanism that controls the intake ...