<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/rts/src/camera, branch master</title>
<subtitle>Minimalistic real-time strategy video game.
</subtitle>
<id>https://gitea.privatedns.org/xavi/rts/atom?h=master</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/rts/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/'/>
<updated>2022-09-20T14:56:30+00:00</updated>
<entry>
<title>Remap calls to pad/mouse/keyboard to input</title>
<updated>2022-09-20T14:56:30+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-09-20T11:43:18+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=4c5630b0d409419d6de905379a06893eac64996b'/>
<id>urn:sha1:4c5630b0d409419d6de905379a06893eac64996b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mouse.c: Reduce threshold</title>
<updated>2022-09-16T18:33:39+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-09-16T18:33:39+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=76a49ba3d536248621b19eb0e3e39297ce61c9a1'/>
<id>urn:sha1:76a49ba3d536248621b19eb0e3e39297ce61c9a1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>camera: implement fixed cursor movement</title>
<updated>2022-06-24T15:45:50+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-24T15:45:50+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=9da37c198e88ebade4a176bc1d7c9a9ebd388862'/>
<id>urn:sha1:9da37c198e88ebade4a176bc1d7c9a9ebd388862</id>
<content type='text'>
On platforms with PERIPHERAL_TYPE_PAD, navigating through menus and
options can be cumbersome if moving the cursor freely around the
screen.

Therefore, this commit instead defines a list of (X, Y) coordinates that
the cursor can jump to. The implementation also attempts to guess which
direction the cursor should jump to for the previous/next point, and
hence determine which button should be pressed by the user.
</content>
</entry>
<entry>
<title>camera.c: refactor cursor_init</title>
<updated>2022-06-24T15:45:14+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-24T15:45:14+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=8ddea5eef59dbc124f914560af61b78867671482'/>
<id>urn:sha1:8ddea5eef59dbc124f914560af61b78867671482</id>
<content type='text'>
So that uninitialized members are set to 0.
</content>
</entry>
<entry>
<title>camera: remove dependency against terrain</title>
<updated>2022-06-12T21:19:03+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-12T20:51:01+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=3cb276b19fa21699aa7241956f5b11d1d5b24fe3'/>
<id>urn:sha1:3cb276b19fa21699aa7241956f5b11d1d5b24fe3</id>
<content type='text'>
This will allow using camera for purposes other than showing the game
map.
</content>
</entry>
<entry>
<title>Split peripheral-related logic into its own component</title>
<updated>2022-06-12T21:18:57+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-12T20:34:23+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=0f9e2d89589f05847fb7dc808da1594f0961b5b4'/>
<id>urn:sha1:0f9e2d89589f05847fb7dc808da1594f0961b5b4</id>
<content type='text'>
This has several advantages:

- `camera` no longer needs to define public functions for each
peripheral type.
- Peripheral-related is now no longer tighly coupled to human_player,
so peripheral logic can be reused elsewhere e.g.: on menus.
- Makes camera_update_touch consistent compared to equivalent functions,
since now `pan` has now been moved to `camera` (as it should be).
</content>
</entry>
<entry>
<title>Implement touch controls</title>
<updated>2022-03-31T04:50:33+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-03-30T06:36:16+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=45337576dff70a3b5991b79d0fe13420110b3594'/>
<id>urn:sha1:45337576dff70a3b5991b79d0fe13420110b3594</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename MAP_{X|Y} to MAP_{W|H}</title>
<updated>2022-03-30T06:23:15+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-03-30T06:23:15+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=638dbd0af112aa730c04af776fbd15dffee43337'/>
<id>urn:sha1:638dbd0af112aa730c04af776fbd15dffee43337</id>
<content type='text'>
</content>
</entry>
<entry>
<title>camera: implement mouse support</title>
<updated>2022-03-30T06:20:21+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-03-09T16:46:59+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=e9d69f90837c4cc688fc90b783db508e2dcc9f6f'/>
<id>urn:sha1:e9d69f90837c4cc688fc90b783db508e2dcc9f6f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move CURSOR_{WIDTH|HEIGHT} to library scope</title>
<updated>2022-03-30T06:20:21+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-03-09T16:46:09+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=244f0b26f8910593d5cf4c60b4051d8e1e1b090c'/>
<id>urn:sha1:244f0b26f8910593d5cf4c60b4051d8e1e1b090c</id>
<content type='text'>
</content>
</entry>
</feed>
