Commit 9395baf0 authored by Adrian Cochrane's avatar Adrian Cochrane

Describe input types

parent fbf14a48
......@@ -18,3 +18,16 @@ type Declaration = Function List Char Maybe Type List List Char Expression |
Import URL Maybe List Char List List Char Maybe URL |
Parser URL List Char
type Program = Program List List Char List Declaration # arguments: exports declarations
type Time = Time Real # Unix time
type Duration = Duration Real # In seconds
type Timeline a = Change Duration a Timeline a | Future Duration Timeline a | End
type MouseButton = Primary | Secondary | Middle
type Coord = Coord Real Real
type Mouse = Scroll Signed Signed |
Press MouseButton | Release MouseButton |
Move Coord
type Keyboard = Down Char | Up Char | Press Char
type Touch = Down Coord | Move Coord | Up Coord
type GameControl = # TODO
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment