LambdaHack/LambdaHack

Change cursor according to mode in SDL2 frontend

オープン

#95 opened on 2017/02/13

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Haskell (57 件のフォーク)auto 404
UIhelp wantedmedium

Repository metrics

Stars
 (660 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Defining and setting cursors is easy:

https://hackage.haskell.org/package/sdl2-2.2.0/docs/SDL-Input-Mouse.html#v:createCursor

The harder part is extending the API to inform the frontend that the user switched from the normal map mode (feet? arrow? hand?) to aiming mode (crosshair) or to menu/help mode (arrow? hand?). Edit: Probably the FrontReq type needs to be extended in a simple way and that's it.

コントリビューターガイド