Commit graph

21 commits

Author SHA1 Message Date
Gered 82f2185752 re-organize project files 2024-07-19 18:20:50 -04:00
Gered 62af8575c6 various updates i've left uncommitted for many months
- rename standard integer types to a more familiar (u)int(8/16/32)
- many function/struct renames. i don't _really_ know if what i've done
  for this is better, but it "feels" better to me. many draw/blit
  function names are shorter which is nice, at least. kinda important
  to me because i develop this on a real DOS machine in 80x50 text mode.
- add 'extern "C"' blocks to headers for C++ compiler usage
- draw/pixel color value arguments for functions should all have been
  changed to be uint8 instead of a full 32-bit int. feels right, but
  maybe should've left alone...
- small fix to keyboard handler. noticed a problem on one thinkpad
  laptop. was a result of what i think was a typo in a constant value
  used during the part of the interrupt handler that tells the keyboard
  controller the key event was processed
- fix uncommon potential crash function return in draw_filled_rect
- renamed low-level "direct" assembly functions to "lowlevel_xxx" to
  be a little bit more explicit about what they are
- add some convenience event helper functions for determining event
  types
- add fixed point atan2
- fixed some tabs/spaces inconsistences (should all be spaces now?)
- maybe some other minor things i've forgotten
2020-07-19 19:24:48 -04:00
Gered 7816a7887b fix handling of numpad keys and other minor cleanups 2018-05-27 13:51:21 -04:00
Gered fc44d4de73 adding some comments 2018-05-27 13:15:58 -04:00
Gered 048fd83331 update key events test to show ascii decimal value for translated chars
mainly just to help tell a non-translatable key from a spacebar press
2018-05-27 12:55:10 -04:00
Gered 9430184ebb add missing key constants for F11 and F12 2018-05-27 12:53:57 -04:00
Gered ff51055ff8 add key code to character translation helper function 2018-05-27 12:42:28 -04:00
Gered 365b628d66 expose keyboard flags/mods state publically. don't preserve old state
since we're maintaining the keyboard flags/led state in the same way
in our handler, there should be no need to restore the previous bios
handler's flags/led state when returning
2018-05-27 11:15:06 -04:00
Gered dcb8f3edaf maintain keyboard flags/led states in interrupt handler
report additional "modifier state" in keyboard events. can be used to
help translate key events to string/characters for text input
2018-05-27 10:36:47 -04:00
Gered c907d7b144 update README.md 2018-05-21 14:50:59 -04:00
Gered ab9fe0cb9a add input device events
as a new subsystem that must be explicitly enabled/disabled
2018-05-21 14:50:12 -04:00
Gered 9f568987d0 fix up intro paragraph. whoops 2018-05-02 17:51:00 -04:00
Gered 4a7beacbdc add keyboard and mouse tests 2018-04-30 20:53:07 -04:00
Gered 8a61d6e674 some small fixes 2018-04-30 20:52:43 -04:00
Gered 84920e46d6 organize test code a bit better 2018-04-30 18:23:39 -04:00
Gered 7dcae35386 update gitignore 2018-04-28 12:06:59 -04:00
Gered cf8071d119 revert experimental stuff that didn't really work better anyway. oops 2018-04-28 12:06:48 -04:00
Gered 4fa6e2abc0 update README.md with build instructions and some forgotten changes 2018-04-28 11:44:00 -04:00
Gered d0e491777f update README.md 2018-04-28 11:33:28 -04:00
Gered 123d3b8256 many updates. moved project over to watcom 2018-04-28 11:30:53 -04:00
Gered e5415c977c initial commit 2017-11-26 13:18:33 -05:00