SteelSeries / gamesense-sdk

472 stars 146 forks source link

Partial Bitmap not working, am I doing something wrong? #101

Closed DaanWet closed 3 years ago

DaanWet commented 3 years ago

So I recently found this sdk and the outdated JS library for it. So I decided to update the JS library (my repo), implementing bitmap worked just fine but partial-bitmap somehow always behaved like a normal bitmap. Is there something I'm doing wrong? This is my body for binding the event with a handler:

  game: 'ETS2',
  event: 'BACKGROUND',
  min_value: 0,
  max_value: 1,
  icon_id: 0,
  value_optional: true,
  handlers: [
    {
      mode: 'partial-bitmap',
      'device-type': 'rgb-per-key-zones',
      'excluded-events': [
        'LEFT_BLINKER',
        'RIGHT_BLINKER',
        'BEACON_LIGHTS',
        'SPEED',
        'WIPERS_ON',
        'HEAVY_LIGHTS'
      ]
    }
  ]
}

This is my body for updating the event:

  game: 'ETS2',
  event: 'BACKGROUND',
  data: { 
     frame: { 
       bitmap: [
          [ 255, 255, 255 ], [ 255, 255, 255 ], [ 255, 255, 255 ],
          ....
          [ 255, 255, 255 ], [ 255, 255, 255 ], [ 255, 255, 255 ]] 
     } 
   }
}
saltybot commented 3 years ago

Hmm, what device(s) are you using?

DaanWet commented 3 years ago

Apex Pro (also MSI 3 zone laptop keyboard)

DaanWet commented 3 years ago

Omg I was using the keyboard devicetype for the events I wanted to exclude, had to use rgb-per-key-zones device type, it all works now