All of the functions to set SCORM data are in the scormdriver.js file.
You can set interaction data in this function:
SCORM2004_RecordInteraction(strID, strResponse, blnCorrect, strCorrectResponse, strDescription, intWeighting, intLatency, strLearningObjectiveID, dtmTime, SCORM2004InteractionType)
Some of the parameters are specific, like the InteractionType, you can reference them within the scormdriver.js or here:
https://scorm.com/scorm-explained/technical-scorm/run-time/run-time-reference/?utm_source=google&utm_medium=natural_search#section-4
... View more