Skip to content

Commit

Permalink
Add back key_cols and key_rows for users who want to know the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
drepper committed May 28, 2020
1 parent 04e6b77 commit d0961a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion streamdeckpp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace streamdeck {


device_type::device_type(const char* path, unsigned width, unsigned height, unsigned cols, unsigned rows, image_format_type imgfmt, unsigned imgreplen, bool hflip, bool vflip)
: pixel_width(width), pixel_height(height), key_count(rows * cols),
: pixel_width(width), pixel_height(height), key_cols(cols), key_rows(rows), key_count(rows * cols),
key_image_format(imgfmt), key_hflip(hflip), key_vflip(vflip), image_report_length(imgreplen),
m_path(path), m_d(hid_open_path(m_path))
{
Expand Down
2 changes: 2 additions & 0 deletions streamdeckpp.hh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ namespace streamdeck {
const unsigned pixel_width;
const unsigned pixel_height;

const unsigned key_cols;
const unsigned key_rows;
const unsigned key_count;

const image_format_type key_image_format;
Expand Down

0 comments on commit d0961a8

Please sign in to comment.