GithubHelp home page GithubHelp logo

Data property about gamesense-sdk HOT 2 CLOSED

steelseries avatar steelseries commented on September 7, 2024
Data property

from gamesense-sdk.

Comments (2)

davidtibbetts avatar davidtibbetts commented on September 7, 2024

The value of data in an event is meant to be a stringified JSON object. It is this way in the API for various reasons.
It is documented in sending game events.

From the documentation:


{
  game: "MY_GAME",
  event: "HEALTH",
  data: "{\"value\": 75}"
}

Notes about the data:

  • The values for game and event are limited to uppercase A-Z, 0-9, hyphen, and underscore characters.
  • All three of the keys are mandatory for the event to be processed.
  • The value for data is a string containing the stringified form of a JSON object. Any events that will be handled by the JSON API must contain the key value. For simplicity and greatest compatibility with user configurability of these events in SteelSeries Engine, it is recommended that the event data be a single value key with numeric values.

We appreciate you checking out the gamesense-sdk! Please read the documentation before submitting issues.

Thanks,
-Dave

from gamesense-sdk.

ToadKing avatar ToadKing commented on September 7, 2024

GameSense was updated in 3.4.1 to support passing either JSON strings or raw objects for handlers or event data.

from gamesense-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.