Skip to content

Releases: mrizaln/glfw-cpp

v0.10.0

18 Mar 11:01
v0.10.0
32b90ef
Compare
Choose a tag to compare

Full Changelog: v0.9.0...v0.10.0

Added

  • New dev branch for active development.
  • New ModifierKey::test_any and ModifierKey::test_all member functions.
  • Proper unit tests for inputs functionalities.
  • New changelog file.
  • Error handling for GLFW_INVALID_VALUE and GLFW_INVALID_ENUM adding InvalidValue and InvalidEnum class respectively.

Fixed

  • Fix off-by-one error on pressed_buttons and released_button member functions for both KeyStateRecord and MouseButtonStateRecord.
  • Incorrect logger formatting for internal error.
  • Missing error.hpp include in glfw_cpp.hpp header.

Changed

  • Replace variadics functions to single parameter std::initializer_list and std::span for ModifierKey functions.
  • Make ModifierKey default constructible.
  • Make ModifierKey constructor explicit.
  • Make ModifierKey::test function take only single parameter.
  • Make set_value, set, and unset member functions of KeyStateRecord and MouseButtonStateRecord return its instance to allow chaining.
  • Make IEventInterceptor and its derivatives a class.
  • Promote the severity of internal error from Error to Critical.
  • Add ErrorCode enumeration as an alternative type safe GLFW error code.
  • Add ErrorCode information inside the glfw_cpp::Error class that can be queried with code() member function.