--- id: input-vector name: Input.vector category: input kind: namespace-method tokens: Input.vector sig: Input.vector(left, right, up, down) -> Vector tip: A normalized 2D vector from four keys. order: 14 ns: Input member: vector --- Returns a 2D movement Vector from four direction keys, normalized so a diagonal is not faster than a straight move (each diagonal component is 0.7071). The one call for eight-way keyboard movement. ```ludic program Demo { entry { Input.press('d') Input.press('w') Input.poll() let v = Input.vector('a', 'd', 'w', 's') print(Math.round(Vector.x(v) * 100)) } } ```